Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded