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

Getting values from SBO screens

Hi all,

I'm using the SDK to develop a popup window that appears on the save button press event on the sales order screen. I need to be able to get the CardCode? and DocNum? from the parent window to autopopulate some fields in the new popup.

Question 1: How do I get the value of particular fields on the parent screen.

When the popup window is finished I'd like to populate some values in the parent screen with values from the popup screen. Namely the Project field at document header level and the Projcet field at row level.

Question 2: How do I populate fields at header and row level.

Thanks in advance for any help anyone can provide.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2004 at 01:50 PM

    The value currently in the Card Code field on screen can be read using the string property of the edittext item. You can use its UID of "4" to access it. (UIDs can be seen using "Display Debug Information")

    eg. sboApp.forms(formUID).Items("4").Specific.String

    There are two options for populating the fields at header and row level. If you want to see the changes on screen and manipulate them before saving to the database, you can simply set the properties of the items on the screen (eg. string for edittexts, use select method for comboboxes etc.)

    Once the order is in the database, you can use the DI to manipulate it. You can use the "GetByKey" method to retrieve the order, and there is a "project" property on document headers and a "projectcode" property on document lines that can be used.

    Regards,

    John.

    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.