Sendkeys Issue in Role Tailored Client

jigneshdhandha
Member Posts: 41
Dear All
I want to Combine Purchase Order and Quantity Explosion of BOM Report.For that I have added Code in Report - OnPostReport of Report 405 Order.
QtyExpBOM_gRpt.RUNMODAL;
IF NOT ISSERVICETIER THEN BEGIN
IF ISCLEAR(WshShell_gAut) THEN
CREATE(WshShell_gAut);
WshShell_gAut.SendKeys('%v');
END ELSE BEGIN
IF ISCLEAR(WshShell_gAut) THEN
CREATE(WshShell_gAut);
WshShell_gAut.SendKeys('%r');
END;
Variable Name : WshShell_gAut
DataType : Automation
SubType : 'Windows Script Host Object Model'.WshShell
In Classic I am Running Purchase Order Report that time I am Only Press Alt+V after that Purchase Order Output is Generated and Due to Code on OnPost Trigger Quantity Explosion of BOM Report Output is Generated But This Output is Automatic Generated For that I dont need to Press Alt+V So Sendkeys Work on Classic But This Sendkeys not Working in Role Tailored Client.
In Classis Sendkeys Working Properly but In RTC Not Working For this Case.
Any Solution.....
I want to Combine Purchase Order and Quantity Explosion of BOM Report.For that I have added Code in Report - OnPostReport of Report 405 Order.
QtyExpBOM_gRpt.RUNMODAL;
IF NOT ISSERVICETIER THEN BEGIN
IF ISCLEAR(WshShell_gAut) THEN
CREATE(WshShell_gAut);
WshShell_gAut.SendKeys('%v');
END ELSE BEGIN
IF ISCLEAR(WshShell_gAut) THEN
CREATE(WshShell_gAut);
WshShell_gAut.SendKeys('%r');
END;
Variable Name : WshShell_gAut
DataType : Automation
SubType : 'Windows Script Host Object Model'.WshShell
In Classic I am Running Purchase Order Report that time I am Only Press Alt+V after that Purchase Order Output is Generated and Due to Code on OnPost Trigger Quantity Explosion of BOM Report Output is Generated But This Output is Automatic Generated For that I dont need to Press Alt+V So Sendkeys Work on Classic But This Sendkeys not Working in Role Tailored Client.
In Classis Sendkeys Working Properly but In RTC Not Working For this Case.
Any Solution.....
0
Comments
-
Give a try changing OnClient property of create function.
I use this code in RTC (page) and works like a charm:IF ISCLEAR(WSHShell) THEN CREATE(WSHShell,FALSE,TRUE); WSHShell.SendKeys('^+U'); CLEAR(WSHShell);
* Daniele Rebussi * | * Rebu NAV Diary *0 -
Hi Geordie
I am also try this
But not Working....
Thanks....0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions