New Instance of UDO-Form

Hi experts,
how can i create a second or instances of my UDO-FORM?
Thanx
Kind Regards
Sebastian

Hi,
You can refer these below threads
Multiple instances of a User defined form
how to open a form multiple times
how to open multiple instances of same form thru menu items
Open Multiple SDK Forms
Creating Multiple Forms
Regards,
Noor Hussain

Similar Messages

  • Copy to new instance of subform

    What I am looking to do is to copy a field and when a new instance of a subform is created past it to another field.
    When a user clicks the transmit button, the transmit button opens a new instance of the form.  I need the Sent To field to populate the Reviewer field on the new instance.  Is this a possibility?

    Hi,
    This should add an new item to the reviewer dropdown and set its rawValue:
    // script to add instance of subform
    // count the number of instances zero based numbering
    var lastRow = _mySubform.count - 1;
    var 2ndLastRow = lastRow - 1;
    var oItem = xfa.resolveNode("mySubform[" + 2ndLastRow + "]").sentTo.rawValue;
    // add the item to the dropdown
    xfa.resolveNode("mySubform[" + lastRow + "]").reviewer.addItem(oItem);
    // set the rawValue
    xfa.resolveNode("mySubform[" + lastRow + "]").reviewer.rawValue = oItem; 
    However this won't check for duplicates. Steve has a good script for this: Drop-down list automatic add-on
    Good luck,
    Niall
    Assure Dynamics

  • How to use default UDO form from new menu

    Hello,
    I've created a UDO form which shows just the code field and the name field on a matrix.
    Is it possible to call this default form from a new created menu?
    Thank you

    Hello,
    If you don't want to keep using the default form - just launch it from somewhere else, simply "Activate" the appropriate menu item.
    Remember that in SAP Business One 2004 every menu item has its own UniqueID. You might want to check-out the sample "AddingMenuItems" from the SDK-CD installation...;
    it has some code (commented out) that will save the menu in a XML file...
    Maybe you have to check the menu string for the appropriate default form as well, if you want to make the code generic.
    Regards,
    Frank

  • Multiple Instance of a Form

    Hi all,
           I am using UDO in a form. This works fine for one instance. But when the user open multiple forms, it gives error. The following is the code to load the form.  Please suggest me a method that serve my purpose.
                   System.Xml.XmlDocument oXmlDoc = null;
                    oXmlDoc = new System.Xml.XmlDocument();
                    string sPath = null;
                    sPath = System.Windows.Forms.Application.StartupPath;
                    oXmlDoc.Load(sPath + @"\twbs.xml");
                    string sXML = oXmlDoc.InnerXml.ToString();
                    SAPbouiCOM.FormCreationParams creationPackage;
                    creationPackage = (SAPbouiCOM.FormCreationParams)SBO_Application.CreateObject     (SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams);
                    creationPackage.UniqueID = "TWBS_Form1";               
                    creationPackage.FormType = "TWBS_Form1";
                    creationPackage.ObjectType = "TWBS_Form1";
                    creationPackage.XmlData = sXML;
                    frmTWBS = SBO_Application.Forms.AddEx(creationPackage);
    Thanking you,
    Pradeep

    Hi Pradeep,
    The UniqueID property must be unique for each instance of your form that is open. The simplest solution is to have a class level integer variable that is incremented each time the form is opened and used as a suffix to the UniqueID.
    For example:
    int _iFormCount = 0;
    System.Xml.XmlDocument oXmlDoc = null;
    oXmlDoc = new System.Xml.XmlDocument();
    string sPath = null;
    sPath = System.Windows.Forms.Application.StartupPath;
    oXmlDoc.Load(sPath + @"\twbs.xml");
    string sXML = oXmlDoc.InnerXml.ToString();
    SAPbouiCOM.FormCreationParams creationPackage;
    creationPackage = (SAPbouiCOM.FormCreationParams)SBO_Application.CreateObject (SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams);
    // Increment the form count variable
    _iFormCount++;
    creationPackage.UniqueID = "TWBS_Form" + _iFormCount.ToString(); // Create a unique ID for this instance of the form
    creationPackage.FormType = "TWBS_Form1";
    creationPackage.ObjectType = "TWBS_Form1";
    creationPackage.XmlData = sXML;
    frmTWBS = SBO_Application.Forms.AddEx(creationPackage);
    Kind Regards,
    Owen

  • View Crystal Report Layout for my UDO Form

    Hi all,
    I try to view a report created for my UDO form. I set all settings in Administration -> Setup -> General -> Report and Layout Manager. Now I wonder what should be assigned to  eventInfo.LayoutKey. I tried assigned report's DocCode from RDOC, DocEntry of my UDO object or UDO Code but nothing works. Always get an error: Incorrect format of argument or something like that - I didn't get an error in English so I tried to translate it.
    How to show a report layout for my UDO form?
    Regards
    Szymon Lipnicki

    Hi and thanks for Your reply.
    Help file contains example how to open report layout prepare in Crystla Reports designer for UDO form.
    //Add Layout Key Event Handler
    SBO_Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SBO_Application_LayoutKeyEvent);
    void SBO_Application_LayoutKeyEvent(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
        BubbleEvent = true;
        if (eventInfo.ReportTemplate == "A001" && eventInfo.ReportCode == "A001001")
            eventInfo.LayoutKey = 1; //Set the key of the layout
    I am using SAP 8.81.
    Regards
    Szymon

  • Problem with inserting new records in Oracle Forms

    Hi Friends,
    I am a new user to Oracle Forms and I need a help from you people. The problem is as follows:
    I have a data block in which I can display a number of records. In this data block the user will be able to edit the fields if no child records are found in another table. I have used when-new-record-instance to attain this scenario. All are text items. One item licensee_id which is made invisible by setting the property in property palette and required=no ( as this is the primary key of the table). Also the audit columns are made invisible.
    The code for it is as follows:
    DECLARE
         v_alert_button NUMBER;
         v_cnt                          NUMBER;
    BEGIN
         SELECT COUNT (*)
    INTO v_cnt
    FROM id_rev_contracts
    WHERE licensee_id = :ID_REV_LICENSEES.licensee_id;
    IF v_cnt > 0 THEN
    set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', UPDATE_ALLOWED, PROPERTY_FALSE);
    ELSE
         set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', UPDATE_ALLOWED, PROPERTY_TRUE);
         -- set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', INSERT_ALLOWED, PROPERTY_TRUE);
    END IF;
    END;
    Now in this data block I should also be able to insert new records and for the same I have used PRE-INSERT trigger and the code for it is as follows:
    DECLARE
         v_alert_button NUMBER;
    CURSOR v_licensee_id IS SELECT id_rev_licensees_s.NEXTVAL FROM dual;
    BEGIN
    OPEN v_licensee_id;
    FETCH v_licensee_id INTO :id_rev_licensees.licensee_id;
    CLOSE v_licensee_id;
    IF :id_rev_licensees.licensee_id IS NULL THEN
    Message('Error Generating Next v_licensee_id');
    RAISE Form_Trigger_Failure;
    END IF;
    :ID_REV_LICENSEES.created_by := :GLOBAL.g_login_name;
    :ID_REV_LICENSEES.last_updated_by := :GLOBAL.g_login_name;
    :ID_REV_LICENSEES.create_date := SYSDATE;
    :ID_REV_LICENSEES.last_update_date := SYSDATE;
    EXCEPTION
    WHEN form_trigger_failure
    THEN
    RAISE form_trigger_failure;
    WHEN OTHERS
    THEN
    v_alert_button :=
    msgbox ('ERROR in Pre-Insert - ' || SQLERRM, 'STOP', 'Contact IST');
    RAISE form_trigger_failure;
    END;
    Every thing is compiling fine but at the run time when I am trying to insert a new record I am receiving the following error:
    FRM-40508:ORACLE error:unable to insert record
    I also think the pre-insert record is not firing at the time of inserting a new record and saving it. So I request you to please delve into this problem and suggest me how to overcome this problem. Code snippets would do more help for me. If you need any other things from me please let me know. I will see if I could be of any help in that concern because I may not be able to send the entire form as it is.
    Thanks and regards,
    Vamsi K Gummadi.

    first of all
    pre-insert fires after the implicit/explicit commit/commit_form is issued and before the real insert is submitted to the db.
    i would suggest to remove the error handling part for the moment
    because i believe you might be getting "ora-xxxx cannot insert null"
    and also make visible the primary column to check if the pre-insert is executed.
    it would be better to make visible for a while the not null columns of the table/block
    i suppose that the block is insert allowed and you are using table as the source of the block and not any procedures or something...

  • Checking for a value in a field within a subform before allowing a user to add a new Instance

    Form setup:
    Page name = Page1
    1st Subform within Page1 = Info (set to flowed)
    Objects within Info subform: Name (textfield) and Email (textfield)
    I also have a 2nd subform within Page 1 which contains an add instance button
    What I'm trying to do:
    1. The user needs to enter their Name and Email address then click "Add Instance button" to create a new instance of the Info subform :  _Info.addInstance(1);
    2. If the user fails to enter an email address, I want there to be a mesage box that infos the user that an email address is required before he/she can create a new instance. Note: It would also be nice if the cursor is Set to foucs on the email field within that particular subform instance.
    3. As long as the user tries to continue adding an instance, he/she will be denied if they do not enter an email in that instance
    4. If the user includes an email address in that instance, then the script will create add a new isntance
    5. The process should continue in this manner for each each click of the add instance button
    I presume there nees to be a loop and perhaps a somExpression scipt, but I'm not sure.
    Here's what i have so far (see below)....The script works for the first instance on the page, but it doesn't prevent new instances from being created when the email field in that "current instance" is empty. I want it to prevent the user from adding new instances if the email field is balnk in that "current instance". So, I guess I'm not sure how ot test a field in the current instance in a repeating subform.
    var vName = Info.somExpression + ".email";
        var vEmail = xfa.resolveNode(vName).rawValue;
        if(vEmail == null)
    xfa.host.messageBox("PLease enter an email address.");
    else{
    Form._Info.addInstance(1);
            var i = Form._Info.count - 1;
            xfa.host.setFocus(xfa.resolveNode("Info[" + i + "].Name")); //This set's the focus of the cursor in the Name field of the newly created subform
    Please advise, and thank you in advance!!!!!!

    Hi,
    I think you can acheive what you want just by adding "lastRow.presence = "hidden";" when you do the addInstance, so it now looks like;
    var lastRow = Form.resolveNode("Info["+(_Info.count - 1)+"]"); // Get last row
    if (lastRow.Email.isNull) // If email field empty
        xfa.host.messageBox("Please enter an email address.");
    else
        lastRow.presence = "hidden";
            var newRow = _Info.addInstance();
        xfa.host.setFocus(newRow.Name.somExpression); // set focus to Name field on the row just added
    So whenever you add a row the previous one is hidden?
    For your second issue, if you could have another button on your form, you could ask the user for a password and if they enter it correctly then show for the Info subforms, so;
    var response = app.response({ cQuestion: "Do you want to see all respones?",
                                  cTitle: "Unlock Form",
                                  bPassword: true,
                                  cLabel: "Please enter the password:" });
    if (response === "Password")
        var infoSubforms = Form.resolveNodes("Info[*]");
        for (var i = 0; i < infoSubforms.length; i++)
                    var infoSubform = infoSubforms.item(i);
            infoSubform.presence = "visible";
    You would want to password protect your template as well (in Form ... Form Properties ... PDF Security) so people couldn't just open the form and look at the password.
    Probably the simplest approach.
    Hope this helps
    Bruce

  • Setting focus to new instance of a field...need help.

    Hi there,
    I have a flowed form which consists of multiple subforms. I have one subform which is basically one textfield that is set to a min of 1 and a max of 5.
    These are to correspond to fields in our system of record that have 5 fields for company long name with a 36 character field limit.
    I've got the limits set up just fine and I have added simple script to add a new instance when the user exits the field.
    The focus goes to the next field set in the tab order but what I want is the focus set on the new instance of field created but I have not been able to find an example of how to do that.
    Any suggestions would be greatly appreciated. Thanks!

    Well,
    I've been reading and trying various things but cant get anything to work like I want it to.
    The sample provided works for 2 iterations but mine has to do this for up to 5 instances. I have not been able to figure out how to get this to work.
    Anyone have any additional suggestions?
    btw...here is my modified version. ES2 is whay I'm using.
    Long_Title.occur.max = "5";
    var oSubform = xfa.resolveNode("Long_Title");
    var oNewInstance = oSubform.instanceManager.addInstance(1); // I think you probably managed this first part better than here
    xfa.form.recalculate(1); // I THINK THIS IS IMPORTANT
    var count = (this.Long_Title.nodes.length)
    var testIndex = oNewInstance.Account_Long_Title.index;
    xfa.host.messageBox("Text Field Index in new Subform: " + count); // TextField1 will conserve index 0 because it is the only textfield in the new Sub1
    var NEW_TEXTFIELD = xfa.resolveNode("Long_Title[1].Account_Long_Title[0]"); // However, Sub1 gets index 1 because it is not alone any more
    xfa.host.setFocus(NEW_TEXTFIELD); // This actually sets focus on the newly created instance of TextField1 (actually Sub1 instance)

  • Problem Connecting B1DE UDO Form Generator in SAP 8.8

    Hello All,
    I have installed the B1DE Tool for SAP 8.8 Patch - 17 machine but while running the UDO Form Generator
    when i am ginving the User Name & Password of the selected company then system throws an error
    "ERROR - Connection to Company Failed ; Resource Error "
    and i am not able to use the UDO Form Generator .
    Please suggest how to resolve this problem,
    Thanks
    Amit

    Hi AmitSharma_061985
    you can download B1DE UDO new version here http://www.sdn.sap.com/irj/sdn/downloads?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]
    1.change name server (server database)
    2.user name and password must have lincence.
    Regards
    H

  • UDO Form Help

    Hi There,
    Need help on modifying my UDO xml form. I need to have the data in Matrix or Grid, But the UDO form that i create from B1 UDO Form Generator gives it field wise.
    I tried to create a new form in screen painter but it doesn't load the form from my code (Surprising).
    My UDO form is loding though and im able to add data, etc. but i want it in a Grid or Matrix style.
    Here is my XML of my UDO form.
    Thank you all in advance.
    <forms>
        <action type="add">
          <form AutoManaged="0" BorderStyle="0" FormType="FMS1_OUT" ObjectType="FMS1_OUT" SupportedModes="15" appformnumber="FMS1_OUT" client_height="373" client_width="518" color="0" default_button="1" height="373" left="219" mode="0" pane="0" title="FMS1_OUT" top="95" type="0" uid="FMS1_OUT_" visible="1" width="518">
            <datasources>
              <dbdatasources>
                <action type="add">
                  <datasource tablename="@FMS1_OUT" />
                </action>
              </dbdatasources>
            </datasources>
            <items>
              <action type="add">
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="1" width="65" height="20" top="320" left="5" type="4" />
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="2" width="65" height="20" top="320" left="75" type="4" />
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="0" font_size="0" forecolor="-1" from_pane="0" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="3" width="80" height="14" top="5" left="92" type="16">
                  <AutoManagedAttribute />
                  <specific>
                    <databind alias="DocEntry" databound="1" table="@FMS1_OUT" />
                  </specific>
                </item>
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" linkto="3" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="4" width="80" height="14" top="5" left="5" type="8">
                  <specific caption="DocEntry" />
                </item>
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="5" width="80" height="14" top="20" left="92" type="16">
                  <AutoManagedAttribute />
                  <specific>
                    <databind alias="DocNum" databound="1" table="@FMS1_OUT" />
                  </specific>
                </item>
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" linkto="5" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="6" width="80" height="14" top="20" left="5" type="8">
                  <specific caption="DocNum" />
                </item>
                <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" visible="1" uid="7" width="80" height="14" top="35" left="92" type="16">
                  <AutoManagedAttribute />
                  <specific>
                    <databind alias="U_FileNo" databound="1" table="@FMS1_OUT" />
                  </specific>

    Prashant,
    Have you tried the Screen painter add-on? Use it has a RAD tool to create your UDO Forms.
    Looking at your xml, I can see that haven't defined any columns.
    I provide you with the XML for one of my document forms, so you can use has template.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
         <forms>
              <action type="add">
                   <form appformnumber="frmNR" FormType="frmNR" type="4" BorderStyle="0" uid="frmNR" title="Nota de Recepção" visible="0" default_button="1" pane="0" color="0" left="324" top="49" width="808" height="479" client_width="808" client_height="445" AutoManaged="1" SupportedModes="15" ObjectType="ADAT_NR">
                        <datasources>
                             <dbdatasources>
                                  <action type="add">
                                       <datasource tablename="@ADAT_ONR"></datasource>
                                       <datasource tablename="@ADAT_NR1"></datasource>
                                  </action>
                             </dbdatasources>
                             <userdatasources>
                                  <action type="add"></action>
                             </userdatasources>
                        </datasources>
                        <Menus>
                             <action type="enable">
                                  <Menu uid="5890"></Menu>
                                  <Menu uid="4876"></Menu>
                                  <Menu uid="1293"></Menu>
                                  <Menu uid="1294"></Menu>
                                  <Menu uid="1299"></Menu>
                             </action>
                             <action type="disable"></action>
                        </Menus>
                        <items>
                             <action type="add">
                                  <item uid="1" type="4" left="5" tab_order="0" width="80" top="420" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="OK"></specific>
                                  </item>
                                  <item uid="2" type="4" left="100" tab_order="0" width="80" top="420" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Cancelar"></specific>
                                  </item>
                                  <item uid="AddRow" type="4" left="715" tab_order="0" width="80" top="420" height="19" visible="0" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Adicionar Linha"></specific>
                                  </item>
                                  <item uid="lbCardCode" type="116" left="111" tab_order="0" width="13" top="11" height="11" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="CardCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific linkedObject="2" LinkedObjectType="2"></specific>
                                  </item>
                                  <item uid="CardCode" type="16" left="125" tab_order="0" width="150" top="10" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Código do Fornecedor" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute>
                                    <Attribute id="2" description="editable" modeAdd="1" modeFind="1"></Attribute>
                                </AutoManagedAttribute>
                                       <specific TabOrder="0" ChooseFromListUID="CFL0" ChooseFromListAlias="CardCode">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_CardCode"></databind>
                                       </specific>
                                  </item>
                                  <item uid="CardName" type="16" left="125" tab_order="1" width="150" top="25" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Nome do Fornecedor" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute>
                                    <Attribute id="2" description="editable" modeAdd="1" modeFind="1"></Attribute>
                                </AutoManagedAttribute>
                                       <specific TabOrder="1" ChooseFromListUID="CFL4" ChooseFromListAlias="CardName">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_CardName"></databind>
                                       </specific>
                                  </item>
                                  <item uid="ContPrsn" type="16" left="125" tab_order="2" width="150" top="40" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Pessoa de Contacto do Fornecedor" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="2" ChooseFromListUID="CFL10" ChooseFromListAlias="Name">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_ContPrsn"></databind>
                                       </specific>
                                  </item>
                                  <item uid="RefNum" type="16" left="125" tab_order="3" width="150" top="55" height="15" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Número de Referência do Fornecedor" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="3">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_RefNum"></databind>
                                       </specific>
                                  </item>
                                  <item uid="PrcCode" type="16" left="365" tab_order="4" width="65" top="10" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Código do Parcelário" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="4" ChooseFromListUID="CFL3" ChooseFromListAlias="Code">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_PrcCode"></databind>
                                       </specific>
                                  </item>
                                  <item uid="lbPrc" type="116" left="352" tab_order="0" width="12" top="11" height="10" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="PrcCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific linkedObject="" LinkedObjectType=""></specific>
                                  </item>
                                  <item uid="PrcName" type="16" left="431" tab_order="6" width="140" top="10" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Nome do Parcelário" linkto="PrcCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="6" ChooseFromListUID="CFL5" ChooseFromListAlias="Name">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_PrcName"></databind>
                                       </specific>
                                  </item>
                                  <item uid="FolhaCod" type="16" left="365" tab_order="4" width="65" top="25" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Código da Folha" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="4" ChooseFromListUID="CFL6" ChooseFromListAlias="Code">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_FolhaCod"></databind>
                                       </specific>
                                  </item>
                                  <item uid="lbFolha" type="116" left="352" tab_order="0" width="12" top="26" height="10" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="FolhaCod" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific linkedObject="" LinkedObjectType=""></specific>
                                  </item>
                                  <item uid="FolhaNam" type="16" left="431" tab_order="6" width="140" top="25" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Nome da Folha" linkto="FolhaCod" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="6" ChooseFromListUID="CFL7" ChooseFromListAlias="Name">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_FolhaNam"></databind>
                                       </specific>
                                  </item>
                                  <item uid="lbItemCode" type="116" left="352" tab_order="0" width="12" top="41" height="10" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="ItemCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific linkedObject="4" LinkedObjectType="4"></specific>
                                  </item>
                                  <item uid="ItemCode" type="16" left="365" tab_order="8" width="65" top="40" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Código da Variedade" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="8">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_ItemCode"></databind>
                                       </specific>
                                  </item>
                                  <item uid="ItemName" type="16" left="431" tab_order="9" width="140" top="40" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Descrição da Variedade" linkto="ItemCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="9">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_ItemName"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Series" type="113" left="639" tab_order="10" width="50" top="10" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Nome da Série" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute>
                                    <Attribute id="2" description="editable" modeAdd="1" modeFind="1"></Attribute>
                                </AutoManagedAttribute>
                                       <specific AffectsFormMode="1" TabOrder="10">
                                            <ValidValues>
                                                 <action type="add"></action>
                                            </ValidValues>
                                            <databind databound="1" table="@ADAT_ONR" alias="Series"></databind>
                                       </specific>
                                  </item>
                                  <item uid="DocNum" type="16" left="690" tab_order="0" width="99" top="10" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Número da Série de Numeração" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                <AutoManagedAttribute>
                                    <Attribute id="2" description="editable" modeFind="1"></Attribute>
                                </AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="DocNum"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Status" type="16" left="690" tab_order="0" width="99" top="25" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="0" table="" alias=""></databind>
                                       </specific>
                                  </item>
                                  <item uid="DataRcp" type="16" left="690" tab_order="11" width="64" top="55" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Data de Recepção da Matéria Prima" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="11">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_DataRcp"></databind>
                                       </specific>
                                  </item>
                                  <item uid="HoraRcp" type="16" left="755" tab_order="12" width="34" top="55" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Hora de Recepção da Matéria Prima" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="12">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_HoraRcp"></databind>
                                       </specific>
                                  </item>
                                  <item uid="OwnerSig" type="16" left="665" tab_order="0" width="24" top="40" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="UserSign"></databind>
                                       </specific>
                                  </item>
                                  <item uid="OwnerNam" type="16" left="690" tab_order="0" width="99" top="40" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Utilizador que Efectuou a Recepção" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_OwnerNam"></databind>
                                       </specific>
                                  </item>
                                  <item uid="TesouraSim" type="122" left="661" tab_order="0" width="50" top="101" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A fruta foi colhida com Tesoura" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Sim" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Tesoura"></databind>
                                       </specific>
                                  </item>
                                  <item uid="TesouraNao" type="122" left="717" tab_order="0" width="60" top="101" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A fruta Não foi colhida com Tesoura" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Não" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Tesoura"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Cochoni" type="121" left="660" tab_order="0" width="130" top="140" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A fruta apresenta sinais de infectação por cochoninha?" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Cochonilha" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Cochoni"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Mosca" type="121" left="660" tab_order="0" width="130" top="155" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="A fruta apresenta sinais de perfuração por Moscas?" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Mosca" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Mosca"></databind>
                                       </specific>
                                  </item>
                                  <item uid="DefEpid" type="121" left="660" tab_order="0" width="130" top="170" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Defeitos Epidermicos" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Defeitos Epidérmicos" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_DefEpid"></databind>
                                       </specific>
                                  </item>
                                  <item uid="OutDef" type="121" left="660" tab_order="0" width="130" top="185" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Outros Defeitos que a Fruta possa apresentar" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Outros" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_OutDef"></databind>
                                       </specific>
                                  </item>
                                  <item uid="PodresN" type="122" left="660" tab_order="0" width="130" top="225" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A entrega não tem fruta podre" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Nenhum" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Podres"></databind>
                                       </specific>
                                  </item>
                                  <item uid="PodresP" type="122" left="660" tab_order="0" width="130" top="240" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A entrega tem alguma fruta podre" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Pouco" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Podres"></databind>
                                       </specific>
                                  </item>
                                  <item uid="PodresM" type="122" left="660" tab_order="0" width="130" top="255" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A entrega tem muita mercadoria podre" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Muito" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Podres"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Cor" type="113" left="660" tab_order="13" width="130" top="295" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Indique, na generalidade, qual a cor da fruta entregue" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific AffectsFormMode="1" TabOrder="13">
                                    <ValidValues>
                                      <action type="add">
                                        <ValidValue value="1" description="Verde"></ValidValue>
                                        <ValidValue value="2" description="Verde/Amarelo"></ValidValue>
                                        <ValidValue value="3" description="Verde/Laranja"></ValidValue>
                                        <ValidValue value="4" description="Amarelo"></ValidValue>
                                        <ValidValue value="5" description="Laranja"></ValidValue>
                                        <ValidValue value="6" description="Vermelho"></ValidValue>
                                      </action>
                                    </ValidValues>
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Cor"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Indust" type="121" left="660" tab_order="0" width="130" top="335" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A fruta destina-se a fins industriais?" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Para Fins Industriais" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Indust"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Calib" type="121" left="660" tab_order="0" width="130" top="350" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="Indique caso a fruta não seja para calibrar" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Não Calibrado" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Calib"></databind>
                                       </specific>
                                  </item>
                                  <item uid="Drencher" type="121" left="660" tab_order="0" width="130" top="365" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="A fruta é para ser lavada?" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="DRENCHER" AffectsFormMode="1" val_on="Y" val_off="N">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_Drencher"></databind>
                                       </specific>
                                  </item>
                                  <item uid="mtx_NR" type="127" left="5" tab_order="0" width="645" top="80" height="250" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific SelectionMode="1" layout="0" titleHeight="20" cellHeight="16">
                                            <columns>
                                                 <action type="add">
                                                      <column uid="V_LineId" type="16" title="#" description="" visible="1" AffectsFormMode="1" width="22" disp_desc="0" editable="0" right_just="1" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                                                           <databind databound="1" table="@ADAT_NR1" alias="LineId"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_PltCode" type="16" title="Cód. Palete" description="Código da Palete Entregue" visible="1" AffectsFormMode="1" width="60" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="CFL2" ChooseFromListAlias="Code">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_PltCode"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_PltName" type="16" title="Descrição da Palete" description="Descrição da Palete" visible="1" AffectsFormMode="1" width="100" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="CFL8" ChooseFromListAlias="Name">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_PltName"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_QtdCaixa" type="16" title="Nº de Caixas" description="Quantidade de Caixas na Palete" visible="1" AffectsFormMode="1" width="70" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_QtdCaixa"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_CaixaCod" type="16" title="Cód. Caixa" description="Código da Caixa" visible="1" AffectsFormMode="1" width="60" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="CFL1" ChooseFromListAlias="Code">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_CaixaCod"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_CaixaNam" type="16" title="Descrição da Caixa" description="Descrição da Caixa" visible="1" AffectsFormMode="1" width="100" disp_desc="0" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="CFL9" ChooseFromListAlias="Name">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_CaixaNam"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_PesoBrut" type="16" title="Peso Bruto" description="Peso Bruto da Palete" visible="1" AffectsFormMode="1" width="70" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_PesoBrut"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_PesoLiq" type="16" title="Peso Líquido" description="Peso Liquido da Palete" visible="1" AffectsFormMode="1" width="70" disp_desc="1" editable="0" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_PesoLiq"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column uid="V_PltObs" type="16" title="Observações" description="Observações sobre a Palete" visible="1" AffectsFormMode="1" width="175" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                                                           <databind databound="1" table="@ADAT_NR1" alias="U_PltObs"></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                 </action>
                                            </columns>
                                       </specific>
                                  </item>
                                  <item uid="DocObs" type="118" left="7" tab_order="14" width="320" top="344" height="60" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="Indique quaisquer observações adicionais sobre a recepção, fornecedor ou fruta" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific ScrollBars="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_DocObs"></databind>
                                       </specific>
                                  </item>
                                  <item uid="TotCaixa" type="16" left="470" tab_order="0" width="100" top="360" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_TotCaixa"></databind>
                                       </specific>
                                  </item>
                                  <item uid="TotPalet" type="16" left="470" tab_order="0" width="100" top="345" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_TotPalet"></databind>
                                       </specific>
                                  </item>
                                  <item uid="TPesBrut" type="16" left="470" tab_order="0" width="100" top="380" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_TPesBrut"></databind>
                                       </specific>
                                  </item>
                                  <item uid="TPesLiq" type="16" left="470" tab_order="0" width="100" top="395" height="14" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="@ADAT_ONR" alias="U_TPesLiq"></databind>
                                       </specific>
                                  </item>
                                  <item uid="3" type="8" left="10" tab_order="0" width="100" top="10" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="CardCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Fornecedor"></specific>
                                  </item>
                                  <item uid="4" type="8" left="10" tab_order="0" width="114" top="25" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="CardName" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Nome"></specific>
                                  </item>
                                  <item uid="5" type="8" left="10" tab_order="0" width="114" top="39" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="ContPrsn" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Pessoa de Contacto"></specific>
                                  </item>
                                  <item uid="6" type="8" left="10" tab_order="0" width="114" top="55" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="RefNum" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Nº Ref. Fornecedor"></specific>
                                  </item>
                                  <item uid="7" type="8" left="295" tab_order="0" width="55" top="10" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="PrcCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Parcelário"></specific>
                                  </item>
                                  <item uid="8" type="8" left="295" tab_order="0" width="55" top="25" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="FolhaCod" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Folha"></specific>
                                  </item>
                                  <item uid="10" type="8" left="295" tab_order="0" width="55" top="40" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="ItemCode" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Variedade"></specific>
                                  </item>
                                  <item uid="12" type="8" left="590" tab_order="0" width="49" top="10" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="DocNum" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Número"></specific>
                                  </item>
                                  <item uid="13" type="8" left="590" tab_order="0" width="99" top="25" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="Status" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Estado"></specific>
                                  </item>
                                  <item uid="16" type="8" left="590" tab_order="0" width="59" top="40" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="OwnerSig" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Funcionário"></specific>
                                  </item>
                                  <item uid="14" type="8" left="590" tab_order="0" width="99" top="55" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="DataRcp" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Data/Hora de Recep."></specific>
                                  </item>
                                  <item uid="38" type="8" left="660" tab_order="0" width="130" top="85" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Colheita com Tesoura?"></specific>
                                  </item>
                                  <item uid="41" type="8" left="660" tab_order="0" width="130" top="125" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Imperfeições da Epiderme"></specific>
                                  </item>
                                  <item uid="47" type="8" left="660" tab_order="0" width="130" top="210" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Podres"></specific>
                                  </item>
                                  <item uid="54" type="8" left="660" tab_order="0" width="130" top="280" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Cor do Fruto"></specific>
                                  </item>
                                  <item uid="56" type="8" left="660" tab_order="0" width="130" top="320" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Outra Informação"></specific>
                                  </item>
                                  <item uid="19" type="8" left="5" tab_order="0" width="160" top="329" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Observações do Documento"></specific>
                                  </item>
                                  <item uid="rtgProp" type="100" left="655" tab_order="0" width="140" top="80" height="305" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific></specific>
                                  </item>
                                  <item uid="59" type="8" left="370" tab_order="0" width="100" top="380" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="TPesBrut" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></Auto

  • Udo form matrix binding

    Hi,
    I created one UDO form.
    in that i am trying to fill the matrix with recordset.
    becoz i am selecting the value from combobox and i run the query with this value.
    so this resultant record set i want to fill in matrix rows.
    oForm = SBO_Application.Forms.Item("JBWISSUES_")
                oItem = oForm.Items.Item("mtx_0")
                oMatrix = oItem.Specific
                oColumns = oMatrix.Columns
                'frm = app.Forms.ActiveForm
                'oMat = frm.Items.Item("gd_act").Specific
                'oMatrix.Clear()
                oComboBox = oForm.Items.Item("27").Specific
                ds = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                ds.DoQuery("select a.code as Code,b.Itemname as Desc1,a.quantity as Quantity from itt1 a,oitm b where a.code=b.Itemcode and a.code='" & oComboBox.Selected.Value & "'")
                ds.MoveFirst()
                'oColumn = oColumns.Item("col_0")
                For i = 0 To ds.RecordCount - 1
                 oColumn.ValidValues.Add(ds.Fields.Item("Code").Value, ds.Fields.Item("Desc1").Value)
                    ds.MoveNext()
                Next
                oMatrix.AddRow()
    here i am getting error like Object reference not set to instance error at oColumn.validvalues....... plz hel p me in that.
    Regards,
    Ravi

    That's because you have commented out the line where you set the oColumn object:
    'oColumn = oColumns.Item("col_0")
    Regards,
    Frank

  • Printing Crystal Reports from UDO form

    Dear Experts,
    I want to open a Crystal report from an addon. I've already found [the following thread|http://forums.sdn.sap.com/thread.jspa?threadID=2039424&start=0&tstart=0] and the [mentioned blog post|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/26720], and applied the solutions given there, but setting the parameters still does not work.
    The report is opened, but the report gives me the message "Input string was not in a correct format", and asks for the parameter. When I enter the parameter, the report shows correctly.
    My form is an UDO form loaded from XML, ObjectType set to my UDO. According to the latest answers, this ObjectType setting is the problem.
    My code is the following:
    Setting the form (the report is already imported into SAP, its DocCode is RCRI0002):
    AddOn.Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SetPrinter);
    SAPbobsCOM.ReportTypesService rptTypeService = (SAPbobsCOM.ReportTypesService)
         AddOn.Company.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportTypesService);
    SAPbobsCOM.ReportTypeParams rptParams = (SAPbobsCOM.ReportTypeParams)
         rptTypeService.GetDataInterface(SAPbobsCOM.ReportTypesServiceDataInterfaces.rtsReportTypeParams);
    rptParams.TypeCode = "RCRI";
    SAPbobsCOM.ReportType updateType = rptTypeService.GetReportType(rptParams);
    updateType.DefaultReportLayout = "RCRI0002";
    rptTypeService.UpdateReportType(updateType);
    SboForm.ReportType = "RCRI";
    the eventlistener function:
    public void SetPrinter(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
         BubbleEvent = true;
         if (eventInfo.ReportTemplate == "RCRI" && eventInfo.ReportCode == "RCRI0002")
              eventInfo.LayoutKey = "21"; //Set the key of the layout - hardcoded for testing
    I work on version 8.81 PL08
    Has anyone found a solution? Is there a solution on higher patch?
    Thanks
    Andrea

    OK, so we returned to this problem, and now I managed to make it work on 8.82 PL11. And now I can't remember anymore how I tried it back then. Maybe I did not use the DocKey@ parameter in the Crystal report.
    Anyhow, it looks like it works now.

  • Help in adding UDO Form to Project

    Hi all,
    I need some help with calling a UDO form in VB.Net
    I have created a new project in VB.NET
    I have created a UDo through Object Registration wizead.
    I also create a form through UDO form generator.
    Since I am new to SAp I want to know how do i call this form into my project.
    I have already created a menu event and on its click I write the folwing code
    Dim SBO_Application As SAPbouiCOM.Application
                Dim oXmlDoc As Xml.XmlDocument
                oXmlDoc = New Xml.XmlDocument
                '// load the content of the XML File
                oXmlDoc.Load("C:\XXX_NEW\poc\form\" + "XXX_POC_MASTERForm.xml")
                '// load the form to the SBO application in one batch
                SBO_Application.LoadBatchActions("oXmlDoc.XML")
    However the above line throws error
    Can someone please tell me what shoud I be doing to make it work
    thanks Dibakar

    Hi Dibakar,
    You should change the last line of your code from
    SBO_Application.LoadBatchActions("oXmlDoc.XML")
    to
    SBO_Application.LoadBatchActions(oXmlDoc.XML)
    There should not be quotation marks around the variable with the XML values in it as the SDK then interprets it as a string.
    Hope it helps,
    Adele

  • Getting new Instance

    Hi,
    This is the same problem which I had already posted.
    But I cant find a solution yet.
    Iam reiterating the problem in a much clear way now
    The problem i face is my jsp(user interface page) calls a servlet Class(Quetion) which has a seperate method named questionHandle(), Up to this there is no problem.
    The problem is when I try to open a fresh (new Internet Explorer) the instance of Question which is already
    created is shared with this explorer also,I dont want this to happen.
    I want a new Instance of the class (Question ) to be created each time I open the new jsp page

    Iam developing a online test application.
    It just returns some questions randomnly picked from the database
    This is the skeleton of Question Servlet class
    package myquiz;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.StringTokenizer;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class Question extends HttpServlet {
         public void init()
         public void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException
              PrintWriter out=response.getWriter();
                   out = response.getWriter();
                   response.setContentType("text/html");
                   out = response.getWriter();
                   out.println("Online Test");
         public String[] questionHandler()
    This is the skeleton of my JSP(quizjsp.jsp)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <body>
    <form NAME="testform" METHOD="POST" onSubmit="return(checkSelection(testform))" action="/quizagain/quizjsp.jsp">
    <%@page import = "myquiz.*" %>
    <%@page import = "java.util.*" %>
    <%!
         Question q = new Question();      
    %>
    <%
    if(first)
    <%
         if(no_of_ques>0)
         ans=str_que_ans[3];
         if(ans.equals(request.getParameter("r1")))
    //     System.out.println(no_of_ques);
    //     correct_ans[ind++]=no_of_ques;
         marks=marks+1;
         // out.println(marks);
    %>
    <%
         else if(i==0 || i>4)
              s=q.questionHandler("operator",comp_level_from,++comp_level_from);
              comp_level_from++;
         if(start)
              showQuestion();
              no_of_ques++;
    %>
    <%!
         public void showQuestion()
    // System.out.println("in Show question");
    j=0;
    StringTokenizer st=new StringTokenizer(s[i++],"$");
    while(st.hasMoreTokens())
         str_que_ans[j++]=st.nextToken();
         if(i >4)
         i=0;
    %>
    <center><h2>Question No. <%=no_of_ques%></h2>
    </center><br><br><br><br><br><br>
    <h2><%=str_que_ans[0]%></h2>
    <center>
    <table align="left" width=10>
    <tr><td><input type=radio name=r1 value="1"></td><td><b><%=str_que_ans[1]%></td></tr>
    <tr><td><input type=radio name=r1 value="2"></td><td><b><%=str_que_ans[2]%></td></tr>
    <tr><td><center><input type=submit value="Next"></input></center></td></tr>
    </table>
    </center>
    </form>
    </body>
    </html>
    I use to invoke my application from myjsp.jsp

  • R12: New Instance creation: what is create warranty check box?

    Hello all,
    In R12, we can create Item instance from Contract launchpad screen itself.
    When New Instance sub form opens, it has "create warranty" check box.
    What is the purpose of this checkbox?
    Regards
    Preeti

    Yes,you can create so that you can cover this instance in the same contract quickly ( i am hoping it is not automatically adding to the contract where you created from). This must be keeping in mind the customer service getting calls about new product that customer wanted to get covered.
    Warranty creation depends on whether the product (item) has BOM with warranty item as a component or not. Do you have that setup done for this item?
    Thanks
    Nagamohan

Maybe you are looking for