Quantcast
Viewing all articles
Browse latest Browse all 3576

Re: how to make find option and next previous menu button in user form

Hi Veer,

 

1. About find button, as I know is you need implement by yourself the function, like this: when the user clicks in the button find, does your query, and fills your form with the data returned from the database, your query maybe can return more than one result, you need deal with.

 

2. About the menu buttons like next, previous....:

 

Sample


Suppose that I draw a form and bind it with the OCRD table. To use the next, previous resource I do something like this:


            SAPbouiCOM.Form oForm = SBO_Application.Forms.ActiveForm;            SAPbouiCOM.DBDataSource oDdDS = oForm.DataSources.DBDataSources.Add("OCRD"); ;            #region DataBind            SAPbouiCOM.EditText oEditText = (SAPbouiCOM.EditText)oForm.Items.Item("CardCode").Specific;            oEditText.DataBind.SetBound(true, "OCRD", "CardCode");            oEditText = (SAPbouiCOM.EditText)oForm.Items.Item("CardName").Specific;            oEditText.DataBind.SetBound(true, "OCRD", "CardName");            #endregion            #region Load and Show            oDdDS.Query(null);            oForm.DataBrowser.BrowseBy = "CardCode"; //CardCode is the UID of the Item, not the field of database.            #endregion

Hope it helps,

 


Best regards,

Diego Lother


Image may be NSFW.
Clik here to view.
View Diego Lother's profile on LinkedIn


Viewing all articles
Browse latest Browse all 3576


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>