×
Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...
Calling Enquiry inside a subroutine
- dmohan
- Topic Author
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
7 years 10 months ago #19506
by dmohan
Calling Enquiry inside a subroutine was created by dmohan
Hi All,
I am unable to store the the enquiry ouput , when i am CALL ENQUIRY.DISPLAY inside a routine
Following is the routine logic
REMOVE Y.AC.ID FROM ID.LIST SETTING Y.POS
WHILE Y.AC.ID:Y.POS
ENQ.SELECTION = '.STMT.ENT.FINPAY'
ENQ.SELECTION<2> = 'ACCOUNT':@VM:'BOOKING.DATE'
ENQ.SELECTION<3> = 'EQ':@VM:'EQ'
ENQ.SELECTION<4> = Y.AC.ID:@VM:TODAY
ENQ.SELECTION<10> = ''
CALL ENQUIRY.DISPLAY(ENQ.SELECTION)
In ENQ.SELECTION<10> doesn't store the output, if anybody knows how to store the output after calling ENQUIRY.DISPALY,please guide me.
Thx
Mohan
I am unable to store the the enquiry ouput , when i am CALL ENQUIRY.DISPLAY inside a routine
Following is the routine logic
REMOVE Y.AC.ID FROM ID.LIST SETTING Y.POS
WHILE Y.AC.ID:Y.POS
ENQ.SELECTION = '.STMT.ENT.FINPAY'
ENQ.SELECTION<2> = 'ACCOUNT':@VM:'BOOKING.DATE'
ENQ.SELECTION<3> = 'EQ':@VM:'EQ'
ENQ.SELECTION<4> = Y.AC.ID:@VM:TODAY
ENQ.SELECTION<10> = ''
CALL ENQUIRY.DISPLAY(ENQ.SELECTION)
In ENQ.SELECTION<10> doesn't store the output, if anybody knows how to store the output after calling ENQUIRY.DISPALY,please guide me.
Thx
Mohan
Please Log in or Create an account to join the conversation.
- pcarsane
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
7 years 10 months ago #19508
by pcarsane
Replied by pcarsane on topic Calling Enquiry inside a subroutine
Hi,
Are you developing a nofile enquiry? if yes, then use this logic:
SUBROUTINE ROUTINE.NAME(EN.REC)
$INCLUDE I_COMMON
$INCLUDE I_EQUATE
$INCLUDE I_ENQUIRY.COMMON
...
EN.REC<-1> = Y.AC.ID:"#":TODAY
RETURN
I hope this helps u.
Are you developing a nofile enquiry? if yes, then use this logic:
SUBROUTINE ROUTINE.NAME(EN.REC)
$INCLUDE I_COMMON
$INCLUDE I_EQUATE
$INCLUDE I_ENQUIRY.COMMON
...
EN.REC<-1> = Y.AC.ID:"#":TODAY
RETURN
I hope this helps u.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 10 months ago #19510
by VK
Cheers
VK
Replied by VK on topic Calling Enquiry inside a subroutine
Hi
As far a I understand it, CALL ENQUIRY.DISPLAY just shows the enquiry on the screen, it won't save its output.
As usual for T24 world, there might be some option I'm not aware about :)
As far a I understand it, CALL ENQUIRY.DISPLAY just shows the enquiry on the screen, it won't save its output.
As usual for T24 world, there might be some option I'm not aware about :)
Cheers
VK
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- TAFj-R20 - 'unix'
Less
More
- Posts: 2854
- Thank you received: 649
7 years 10 months ago #19513
by jpb
Replied by jpb on topic Calling Enquiry inside a subroutine
ENQ.SELECTION<10> may be set to "P" or "OUTPUT" to have a report generated instead of displaying the result (beside there are some other values).
But there is no way to retrieve the output in an ENQ.SELECTION field.
But there is no way to retrieve the output in an ENQ.SELECTION field.
The following user(s) said Thank You: igosm
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 10 months ago #19514
by VK
Cheers
VK
Replied by VK on topic Calling Enquiry inside a subroutine
Hi
I knew that we need to go deeper :)))
Does any method exist to get the resulting &HOLD& ID?
BTW, for getting the enquiry output it might be better to issue an OFS with ENQUIRY.SELECT, then parse the OFS reply...
I knew that we need to go deeper :)))
Does any method exist to get the resulting &HOLD& ID?
BTW, for getting the enquiry output it might be better to issue an OFS with ENQUIRY.SELECT, then parse the OFS reply...
Cheers
VK
Please Log in or Create an account to join the conversation.
- igosm
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
1 year 4 months ago - 1 year 4 months ago #23920
by igosm
Replied by igosm on topic Calling Enquiry inside a subroutine
Hi @jpb
Aren't you aware please if there is way to get the ID of the generated file in this case? (like VK asked)
And is there a way to save the output in a different folder?
And can it be saved in XML or CSV?
Thanks
Aren't you aware please if there is way to get the ID of the generated file in this case? (like VK asked)
And is there a way to save the output in a different folder?
And can it be saved in XML or CSV?
Thanks
Last edit: 1 year 4 months ago by igosm.
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- TAFj-R20 - 'unix'
Less
More
- Posts: 2854
- Thank you received: 649
1 year 4 months ago #23921
by jpb
Replied by jpb on topic Calling Enquiry inside a subroutine
Long time since . . .
You can try to use I_RC.COMMON in your routine and check the defined fields - maybe there is something interesting.
Or assign some values before calling ENQUIRY.DISPLAY
You can try to use I_RC.COMMON in your routine and check the defined fields - maybe there is something interesting.
Or assign some values before calling ENQUIRY.DISPLAY
Please Log in or Create an account to join the conversation.
- silvergem
- Offline
- Elite Member
- TAFC|R12/R13, TAFJ|R20
Less
More
- Posts: 247
- Thank you received: 20
1 year 4 months ago #23923
by silvergem
Replied by silvergem on topic Calling Enquiry inside a subroutine
Yes, you can setup on PRINTER.ID when you're using an enquiry report and repgen which can be ran during COB or adhoc.And is there a way to save the output in a different folder?
By default, on browser the result can be saved by XML and csv. You can explore the enquiry report which as REPORT.CONTROL that controls the printing formatAnd can it be saved in XML or CSV?
Please Log in or Create an account to join the conversation.
- MarkTaylor
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 5
1 year 4 months ago - 1 year 4 months ago #23932
by MarkTaylor
Replied by MarkTaylor on topic Calling Enquiry inside a subroutine
&HOLD& ID is available in the COMMON variable C$RPT.IN.HOLD.ID<1> (I_RC.COMMON)
As mentioned by VK, CALL ENQUIRY.DISPLAY doesn't store the file. You have to call ON/OFF printer
As mentioned by VK, CALL ENQUIRY.DISPLAY doesn't store the file. You have to call ON/OFF printer
Last edit: 1 year 4 months ago by MarkTaylor.
The following user(s) said Thank You: VK
Please Log in or Create an account to join the conversation.
Time to create page: 0.127 seconds