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

Setting FormTypeEx in Screen Painter

Hopefully this is a quick question...

How can you set a custom form's FormTypeEx value through the screen painter?

Is it valid to set it directly in the xml? ie:

<form appformnumber="-1" FormType="-1" FormTypeEx="namespace_formname" ... >

(I'm looking to load the form's xml and add that form to any existing event filters..)

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2009 at 04:02 PM

    Hi

    I have not seen the FormTypeEx property on any of the .srfs (xmls) created by the screen painter. I think this method or property is mostly deprecated (might not be corrected about this).

    Maybe you could try doing the same with the FormType!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2009 at 04:17 PM

    So the XML attribute FormType maps to the Form.TypeEx value?

    I've tried setting FormType="namespace_name" but my addon stops receiving events after loading the form.

    Now if I set FormType="1" (or any numeric value) it works fine but putting my namespace in causes the problem.

    For the time being I'm leaving FormType as "-1" and letting B1 assign a TypeEx value but would like to know how to control the value...

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Found my problem. Since this was a 1st Business One application, I was sending a lot of information to the System log - one of which was the event's current form information, ie: the FormType property. My event handler code was crashing when the XML contained text for the <FormType> tag (which maps to the FormTypeEx property which then messes up the FormType property).

      Edited by: Patrick Read on Feb 26, 2009 12:03 PM

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.