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

Navigation Buttons

Hi everybody,

I'm trying to connect UDO object with a form created with Screen Painter. There's no problem but when trying to run Navigation Buttons I've got an error. The code I'm using is:


oCreatioParams = oApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)

oCreatioParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed

oCreatioParams.FormType = "EXP_0001"

oCreatioParams.ObjectType = UDOName

oCreatioParams.UniqueID = GetUniqueID()

oCreatioParams.XmlData = oXMLDoc.xml

oForm = oApplication.Forms.AddEx(oCreatioParams)

oForm.Visible = True

if I add this line

'oForm.DataBrowser.BrowseBy = "txtCode" ' AFS

I've got an error: "An unhandled expection of type


Other question is:

I'd need to link fields from Screen Painter to this table created with UDO. I've tried to do this with TableName property in Screen Painter but there's an error. How can I do that???


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2005 at 03:14 PM

    Hi Angel, when creating your form why dont you add the line "'oForm.DataBrowser.BrowseBy = "txtCode"? Then your Xml file will contain that tag.

    I think that in your Xml data the following line is missing: <DataBrowser BrowseBy="txtCode" />

    before Form end tag ends: </form>

    With it you should not have any further problems.

    Also be sure that the UDO object exist in the Company!!



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 08, 2005 at 03:23 PM

    Hi Angel,

    Is your txtCode a valid it_EDIT item inside your form?

    Is it linked to a dbdatasource?

    Is it linked to a field that is a key for your table?

    To link your edit text to a table/field using Screen Painter you must put the name of the table in the property TableName and the name of the field in the Alias property (both inside the Specific properties).

    Hope it helps


    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.