Skip to Content
author's profile photo Former Member
Former Member

Read Out Data from SBO via UI API

Hi

Can I read out something from the SBO via UI API ?

for Example a DocNum of one Document who im using in the moment?

plz replay As Soon as Pissible

Thanks for your Time

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jan 13, 2005 at 02:12 PM

    You can know the form that is actually active by using

    oForm = Application.Forms.ActiveForm

    Or you can wait for the events et_FORM_LOAD or et_FORM_ACTIVATE to know whether the form you are interested in is opened.

    Once you have the current active form and it is of the type you want to read, then you can use

    oItem = oForm.Items.Item("ItemUID") ' You can obtain ItemUID with View-> Debug Information

    oEditText = oItem.Specific ' Specific will give you the specific object type of the item you asked for

    docNum = oEditText.Value ' Into the EditText item type you ask for its value with .Value, it depends on the type of item you will have a different way to obtain the value of the item shown.

    Hope it helps

    Trinidad Martinez.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2005 at 03:03 PM

    Hi,

    If possible, you should try to use the DBDataSources (or UserDataSources) instead of directly accessing the UI "items".

    DocNum can only by retrieved from the DBDataSource (and only, if the document has already been saved!!!). Please check the SDK 2004 DI API helpfile for more information.

    HTH,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2005 at 07:35 AM

    Thanks to All.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.