on 09-10-2008 4:33 AM
I have created a form using screen painter.I have added some textboxes and buttons as per my requirement.I want to change the caption of btnOK from OK to Update some text is typed in textbox.I tried key down event but it fired for each and every character and the speed was decremented.Which is other event which can trap the updation of form ?
Dilip,
You can do it automatically with the form's AutoManaged property set to True and the Item's AffectFormMode property set to True also, or if your really what to do it manually, just catch the item's LostFocus or Validate events and change the form mode to Update.
Regards,
Vítor Vieira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dilip,
Set AffectsFormmode as False.Manually,set the Form mode as form.Mode=SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
this will change the caption of the button to Update.When u register in UDO,And set Affects form mode=true,it will take care of add,update,find,ok(according to that the caption of the buton changes).I hope this will help u........:)
Kind Regards
Mohana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Dilip Kumbhar,
You may use the
ItemEvent Object -> EventType Property ->
et_FORM_DATA_UPDATE : specifies that the application updated a record in a business object.
Please refer to SDK UI API help for more information.
Best Regards
Jane Jing
SAP Business One
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dilip,
If you set the UID of the button to 1 then it will automatically change the caption from OK to Update when you change any item, unless the AffectsFormMode property of the item is set to false.
Kind Regards,
Owen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.