lsDrillAround Syntax

 27 Replies
 0 Subscribed to this topic
 22 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
I'm on RS 1.3 and Crystal RAS 10. When I format an _DRILL field from a Lawson Report (not from RW) I can't get it to display as a hyperlink (not to mention it doesn't drill, but I'll address that later). When I publish and view it the drill field appears with the suyntax.
John Henley
Send Private Message
Posts: 3351
Hi Bob,
When you create the "drillable" field on the report, you need to right-click the field in the Crystal designer, select 'Format Field', then click on the 'Hyperlink' tab. On that tab, select Hyperlink type as 'A Website on the Internet'.
You need then to click on the formula button next to the website address and create a formula to generate the URL.
I've attached a copy of some slides from one of my user group sessions which should give you an example to use.
Attachments
Thanks for using the LawsonGuru.com forums!
John
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Thanks, John. I've done the formatting of the field as you mention - however my syntax, based on what I get from Enterprise Reporting User Guide (v10-pg.57), is nothing like what you have. Obviously your's works so I'm not questioning what you have - but where did you get the syntax? Here's mine:
"parent.parent(‘CrystalViewerToolbar’).lsDrillAround(’’,’"+{Command.GlcControlGroup_DRILL}+"’,’’);"
mine has a Command field instead of an ado since it is coming from a Lawson Report via OLEDB.
John Henley
Send Private Message
Posts: 3351
The syntax is really the same concept:
- Yours is just getting passed thru JavaScript to open the DrillAround within Portal.
- Mine is opening a separate window for Drillaround (since in my case the report wasn't being viewed inside portal)

The _DRILL fields are only added to the resultset on FORM queries and RW100 reports.

What is your report's data source?
Thanks for using the LawsonGuru.com forums!
John
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
This is from a GL245 - and I see _DRILL fields on many standard lawson reports.
John Henley
Send Private Message
Posts: 3351
Do you have the j-a-v-a-script: in there?

Thanks for using the LawsonGuru.com forums!
John
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
I believe so - this is what the GLCONTROLGROUP_DRILL field translates to - _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++31&GI=++++++31&GIS=&
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Sorry, here's the java script from the formatted field in crystal - "parent.parent(‘CrystalViewerToolbar’).lsDrillAround(,{Command.GlcControlGroup_DRILL},);"
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
"parent.parent(‘CrystalViewerToolbar’).lsDrillAround(,{Command.GlcControlGroup_DRILL},);"
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Somehow the forum's web page is removing the intitial ""
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
beteween the quotes is the word javascript - maybe this is my problem, perhaps I need to find a way to retain that word in the crystal formatting - it's there in the dialogue box but perhaps it's not being translated?
John Henley
Send Private Message
Posts: 3351
Yes, the forum web page does remove javascript tags to keep from a hacker from injecting stuff...a frustration when trying to converse about something like this

If you want to reply (use the reply link, NOT the quick reply box), you can post the report or a screen shot of your formula...

Stupid question: when you're testing this, are you testing the DrillAround from within the Crystal Designer or within Portal?
Thanks for using the LawsonGuru.com forums!
John
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
No, that's a good question - the answer is that it looks the same in Lawson ers \published view as it does in crystal.
When I use Reply I get this error:
Cannot redirect after HTTP headers have been sent.
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
By the way - I've tried to get GSC to work on this and they've only given me very weak answers and then try to sell me services!
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Here are my rs admin settings - does anything look wierd to you?

Budgeting Log Page rw
Budgeting Path
Drill Around Debug Mode 1
Drill Explorer Path \lawson\portal\epm\drill\
ERS Administrator Enabled
ERS Administrator Role
ERS Archive Path D:\LawsonArchives\
ERS Crystal Report Viewer CrystalReportViewer
ERS File Size Upload Limit 5242880
ERS Path D:\LawsonDocuments\
Framework Location http://MCHERP03:8282/efs/
Lawson Domain lawson.mch.com
Lawson Server http://MCHERP01
Scheduler Home D:\FrameworkServices\jakarta-tomcat-4.0.6\webapps\ers\scheduler
Scheduler Host
Scheduler ID Sched1
Scheduler Port
John Henley
Send Private Message
Posts: 3351
Can you try the 'reply option' again and post a screen shot of your formula, or the .rpt file itself...
Thanks for using the LawsonGuru.com forums!
John
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Posted By Bob Beverley on 1/24/2007 1:48 PM

Here are my rs admin settings - does anything look wierd to you?

Budgeting Log Page rw
Budgeting Path
Drill Around Debug Mode 1
Drill Explorer Path \lawson\portal\epm\drill\
ERS Administrator Enabled
ERS Administrator Role
ERS Archive Path D:\LawsonArchives\
ERS Crystal Report Viewer CrystalReportViewer
ERS File Size Upload Limit 5242880
ERS Path D:\LawsonDocuments\
Framework Location http://MCHERP03:8282/efs/
Lawson Domain lawson.mch.com
Lawson Server http://MCHERP01
Scheduler Home D:\FrameworkServices\jakarta-tomcat-4.0.6\webapps\ers\scheduler
Scheduler Host
Scheduler ID Sched1
Scheduler Port

here's the crystal formula - "parent.parent(‘CrystalViewerToolbar’).lsDrillAround(,{Command.GlcControlGroup_DRILL},);"
here's the 'translated' _DRILL field for the GLCCONTROLGROUP (JE #)
_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++31&GI=++++++31&GIS=&
Unfortunately, I still can't paste a print screen
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Posted By Bob Beverley on 1/24/2007 2:41 PM

Posted By Bob Beverley on 1/24/2007 1:48 PM

Here are my rs admin settings - does anything look wierd to you?

Budgeting Log Page rw
Budgeting Path
Drill Around Debug Mode 1
Drill Explorer Path \lawson\portal\epm\drill\
ERS Administrator Enabled
ERS Administrator Role
ERS Archive Path D:\LawsonArchives\
ERS Crystal Report Viewer CrystalReportViewer
ERS File Size Upload Limit 5242880
ERS Path D:\LawsonDocuments\
Framework Location http://MCHERP03:8282/efs/
Lawson Domain lawson.mch.com
Lawson Server http://MCHERP01
Scheduler Home D:\FrameworkServices\jakarta-tomcat-4.0.6\webapps\ers\scheduler
Scheduler Host
Scheduler ID Sched1
Scheduler Port

here's the crystal formula - "parent.parent(‘CrystalViewerToolbar’).lsDrillAround(,{Command.GlcControlGroup_DRILL},);"
here's the 'translated' _DRILL field for the GLCCONTROLGROUP (JE #)
_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++31&GI=++++++31&GIS=&
Unfortunately, I still can't paste a print screen

This is the data as it appears in Crystal:
GlcCo GlcControlGroup_DRILL
31 _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++31&GI=++++++31&GIS=&
41 _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++41&GI=++++++41&GIS=&
49 _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++49&GI=++++++49&GIS=&
56 _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++56&GI=++++++56&GIS=&
82 _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++82&GI=++++++82&GIS=&
93 _TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++93&GI=++++++93&GIS=&

Here's how it appears in Lawson RS:
GlcCGlcControlGroup_DRILL
31_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++31&GI=++++++31&GIS=&
41_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++41&GI=++++++41&GIS=&
49_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++49&GI=++++++49&GIS=&
56_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++56&GI=++++++56&GIS=&
82_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++82&GI=++++++82&GIS=&
93_TYP=DT&_UNM=NT00000001&_ENM=&_PDL=PROD&_SYS=GL&_KNB=GI&_SKN=&_LKN=&01=+++1&06=2006&GP=+6&GS=GL&GK=A&@cf=++++++93&GI=++++++93&GIS=&

John Henley
Send Private Message
Posts: 3351
Sorry, I should have said 'attach' a print screen, not 'paste'. When you use the 'reply' link instead of 'quick reply', you should see options to post attachments.

You can also email me the .rpt or screen show...
Thanks for using the LawsonGuru.com forums!
John
John Henley
Send Private Message
Posts: 3351
You should be able to take one of those drill strings and append it to http://server/cgi-lawson/ida.exe? and open the drill in a browser window....
Thanks for using the LawsonGuru.com forums!
John
John Henley
Send Private Message
Posts: 3351
In your rs admin settings, the drill explorer path should have forward slashes (/), not back slashes (\).
Thanks for using the LawsonGuru.com forums!
John
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Thanks John, I think we're on to something - I'll let you know what it was if/when we get it.
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
Ok, now I am getting to the drill page when I put the ida string directly in a browser window's address bar. However, when I click on the formatted field in Lawson RS viewer it doesn't execute the drill, I just get 'Error On Page'
Bob Beverley
Advanced Member Send Private Message
Posts: 31
Advanced Member
I'm using 'Reply' but I still don't see anything related to post attachments or anything of the sort. I'l email you my errored Lawson RS print screen.
John Henley
Send Private Message
Posts: 3351
BTW, what version of RS are you running?
Check those slashes again in the drill parameter in admin.... (need forward, not backward)

Go back to your formula.
Make sure you have (i.e. javascript followed by a colon...)
"j-a-v-a-s-c-r-i-p-t:parent.parent(‘CrystalViewerToolbar’).lsDrillAround(’’,’"+{Command.GlcControlGroup_DRILL}+"’,’’);"

So that the result of the formula has your Drill command embedded between single quotes.
Thanks for using the LawsonGuru.com forums!
John
Page 1 of 212 > >>