Dear sirs, I want to do the following, but I don’t know if it is possible; I’d like that, on create an item, on item form, and on close it, it detects that that item Nº. finish in ING-A and go automatically to create a new item. How can I do that?.
Thanks in advance.
0
Comments
If you enter an item into the form and close it - it's already created.
perhaps you're not wording your question correctly.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thanks for help.
This will allow you to enter another new item.
Is this correct?
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thanks for your help.
note if you do get this to work onquerycloseform (not to mention onNextRecord) everytime you enter & leave any item that contains ING-A you will be prompted to enter a new item everytime if you want to or not.
If you use oninsert on the form you'll have to change the dlayed insert to yes. so i really think you should think this through on how you really want this to work.
You could add a confirm (item contains ING-a would you like to create another item?) but all this seems like alot of work to avoid the simple F3
if you need a simple reminder then
varInteger := STRPOS("No.", 'ING-A');
IF varInteger <> 0 THEN Message('Item %1 Contains ING-A',"No.");
Sendkeys could invoke the F3 but i would really think about auto inserting new items in this manner
http://www.BiloBeauty.com
http://www.autismspeaks.org
What ever you are trying to do, it looks like you are going about it the wrong way.
Take two steps back and start again and rep-hase the question by explaining why you are doing this and what you want to achieve, then maybe we can help you with a better solution.
Respondig David I'll try to explain what I want to do. When an user insert a new reference ING-A terminated, I want that the system automatically forced to insert another Item which will be associated in another process. This is so because, the user who must link these two references, don't forget to create the associated Item; I hope to have explained. I can't think of another way to be sure that you insert the second reference.
Thanks for help.
do they reference each other somewhere or have something in common?
If so you can have the system check those/that field(s) to see if they filled, else make the item unusable.
for exmaple if the item contains ING-A (onInsert) it sets the blocked field to true and onvalidate of the blocked field you can do a testfield to see if the "linked/reference" field is filled, then it will only allow you to uncheck the blocked field at that time.
else I can't see this happening cleanly without putting the code oninsert and changing the delayedinsert proprty to yes on the item card. This way you won't be prompted to keep inserting everytime you enter this item as you will get using onqueryclose form.
there are plenty of posts about sendkeys if you search the forum. but what's stopping the user from closing the form anyway once a new item insert has been created?
if you want a message only then I can help you with that.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thank you very much for your help and time.