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

Problems with screen painter

Hi

I created a basic form in code, which has some folders on it. I then saved this in xml, reloaded the form in xlm, everthing was fine. I want to add lots of fields to the form so I started using screen painter.

The problem is now when I load the form from the new xlm file it only shows the buttons and no other fields or tabs.

I started from scratch again but as soon as I start using screen painter it seems to mess up the xml file.

Does anyone have any ideas please ?

Regards Andy

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 08:09 AM

    Why start in code, and then use screen painter...? You'd better start with screen painter, and finish the job in code... 😊

    Could you also provide the SBO version and patchlevel you're running...? In example, Screen Painter in SBO 2004 does crap up all datasources in your xml file, while Screen Painter in SBO 2005 nicely adds them for you... 😊

    Note: if you use tabs (folders) you need to bind the same datasource to all tabls, and link them to each other...

    <b>Code (C#)</b>

    // Get references to the folder
    Folder fOne = SBOForms.Items.Item("UIDFldr1");
    Folder fTwo = SBOForms.Items.Item("UIDFldr2");
    
    // Add the DataSource
    SBOForm.DataSources.UserDataSources.Add("dsFldr", dt_SHORT_TEXT, 1);
    
    // Link the Folders and bind the datasources
    fTwo.LinkTo = "UIDFldr1";
    fOne.DataBind.SetBound(true, "dsFldr", "");
    fTwo.DataBind.SetBound(true, "dsFldr", "");
    

    Note #2: When using tabs, you need to ctach the et_ITEM_PRESSED events on the tab/folder items, and set the according panelevels. Remember: Pane 0 is always visible.

    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.