×
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...
New ID
- Insane
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
17 years 2 months ago #851
by Insane
New ID was created by Insane
Hi, can anyone help me? I need to define in my local application, if user press F3 button, to generate ID using my routine.
Please Log in or Create an account to join the conversation.
- daguma
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
17 years 2 months ago #852
by daguma
Replied by daguma on topic RE:
hey!
In the table AUTO.ID.START you should create a record for your application.
After that, you have to add your application to the 13th field in the corresponding COMPANY record.
give that a try...
In the table AUTO.ID.START you should create a record for your application.
After that, you have to add your application to the 13th field in the corresponding COMPANY record.
give that a try...
Please Log in or Create an account to join the conversation.
- Insane
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
17 years 2 months ago #853
by Insane
Replied by Insane on topic New ID
Thank you for reply. I know this way, but this method will autoincrement my ID. In my case, I want to create ID myself in another way than incrementation.
Please Log in or Create an account to join the conversation.
- daguma
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
17 years 2 months ago #854
by daguma
Replied by daguma on topic RE
ok,
then... you can attach your routine to the CHECK.ID stage in your application and create a new ID with your way.
Have you checked that?
then... you can attach your routine to the CHECK.ID stage in your application and create a new ID with your way.
Have you checked that?
Please Log in or Create an account to join the conversation.
- Insane
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
17 years 2 months ago #855
by Insane
Replied by Insane on topic New ID
Yes, I know, that on CHECK.ID I can generate new ID, but how can I define, if user wants to create new ID, or he want to edit existing one?
Please Log in or Create an account to join the conversation.
- malai
- Offline
- Platinum Member
Less
More
- Posts: 508
- Thank you received: 11
17 years 2 months ago #856
by malai
Replied by malai on topic C.F
Auto ID will get generated only when you press F3.
You can put a condition inside your CHECK.ID block like
IF COMI EQ C.F THEN
GOSUB GENREATE.AUTO.ID
END
I hope there may be some other alternate way to do the same.
Gain Knowledge From Helping Others|Thanks
You can put a condition inside your CHECK.ID block like
IF COMI EQ C.F THEN
GOSUB GENREATE.AUTO.ID
END
I hope there may be some other alternate way to do the same.
Gain Knowledge From Helping Others|Thanks
Please Log in or Create an account to join the conversation.
- daguma
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
17 years 2 months ago #857
by daguma
Replied by daguma on topic RE
Hi again...
Another way to make it work is to use the ECOMI variable instead of COMI, because COMI didnĀ“t work for me.
cheers
Another way to make it work is to use the ECOMI variable instead of COMI, because COMI didnĀ“t work for me.
cheers
Please Log in or Create an account to join the conversation.
- Insane
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
17 years 1 month ago #858
by Insane
Replied by Insane on topic COMI, ECOMI
Hi, thank you for your advices.
Unfortunly both of your variants doesnot work for me, because the system tryes to generate ID before CHECK.ID stage, and in CHECK.ID stage COMI equals ID, generated by the system.
So, currently I've use some workaround for that case: Instead of calling application with command 'MY.APP I F3', I'm call it using, e.g. 'MY.APP I XXXXXX', and in CHECK.ID stage I've check IF COMI EQ 'XXXXXX' and than I generate new ID.
Unfortunly both of your variants doesnot work for me, because the system tryes to generate ID before CHECK.ID stage, and in CHECK.ID stage COMI equals ID, generated by the system.
So, currently I've use some workaround for that case: Instead of calling application with command 'MY.APP I F3', I'm call it using, e.g. 'MY.APP I XXXXXX', and in CHECK.ID stage I've check IF COMI EQ 'XXXXXX' and than I generate new ID.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds