View previous topic :: View next topic
|
Author |
Message |
sunnybunny
New User
Joined: 29 Nov 2005 Posts: 49
|
|
|
|
Hi,
Can anyone help me on this.
I have the following requirement in telon.
There are two screens A,B. The layout of 'A' screen is as follows.
1. Read
2. Update
3. Delete
Option :
Emply No :
From screen A i have to perform the following.
1. From screen A when user selects Option 1 and employee No as '100' then it should read DB2 table
and it has retrieve all the employee numbers from the table which are gretaerthan or equal to
the entered Employee.
2. From screen A when user selects Option 2 and emplyee No as '100' then it should read DB2 table
and it has retrieve all the employee numbers from the table which are equal to the entered Employee.
For both the above mentioned points screen B will have PF7, PF8 logic to show the records.
To do this it requires two cursor queries with AUTOEXEC option.
I am able to add AUTOEXEC and BROWSE for point 1.
But when I tried to add AUTOEXEC and BROWSE for point 2 telon is showing following error.
"MULTIPLE BROWSE REQUESTS IN DATA GROUP"
Can any one help how to rectify this.
or Is there any other method to achieve above problem???
Thanks
Sunny |
|
Back to top |
|
|
ajithkumarsl
New User
Joined: 23 Oct 2006 Posts: 19 Location: Chennai
|
|
|
|
Hi Sunny,
Why you need to use an 'AUTOEXEC' in the second Case?
What I understand is In the second Case, ie when you want to update the details of the Employee, you have the Key with you.
So you can excecute a Unique read and populate in the next screen.
Please correct me if I am wrong. |
|
Back to top |
|
|
sunnybunny
New User
Joined: 29 Nov 2005 Posts: 49
|
|
|
|
Hi Ajit,
In second case also first I need to display all the employees which are having the employee No# 100 in the screen.
Then user selects any one of the row from the list screen for update.
So I need to use one more cursor in this case.
Please let me know what to be done in this case.
Regards,
Sunny. |
|
Back to top |
|
|
ajithkumarsl
New User
Joined: 23 Oct 2006 Posts: 19 Location: Chennai
|
|
|
|
Hi Sunny,
Then you can use the same 'AUTOEXEC' in the second case also.
IT seems to be like doing the same thing for the both options.
Please correct me if I am wrong. |
|
Back to top |
|
|
sunnybunny
New User
Joined: 29 Nov 2005 Posts: 49
|
|
|
|
No Ajith.... you can not use AUTOEXEC twice.
I tried to add AUTOEXEC and BROWSE for point 2 also. Telon is showing following error.
"MULTIPLE BROWSE REQUESTS IN DATA GROUP"
Is there any other way to do this?????
Reagrds,
Sunny. |
|
Back to top |
|
|
|