Update a system form using XML

Hi all,
I'm trying to update a system form by adding a tab (folder). The form is Customer Equipment Card (nb 60150), in the service menu.
I just want to add a folder called Counter.
When I load the XML file below, I get the following error :
System.Runtime.InteropServices.COMException (0xFFFFFFFE): Function not supported on current SBO Version - upgrade is required
If I want to add a button, it's working, but not a folder.
Something's false in this XML file (I add the good uid before I load it) ?
Thanks for your help
Sébastien

> - Drop the datasource section
> The error is gone, but I don't see the folder in
> in the form
You could try and check wether it's there but invisible (access it in your code and wait for an exception).
> - Linkto Objet
> If you look at the XML code of the form, you can
> can see that all the folder are links to this item.
> Moreover, when I add the form using VB (it's working
> that way), the XML result will show linkto = "54"
I believe. I analyzed another system form and my own forms: None of the tabs are linked to anything. Is this documented? What does it mean?
> - the data source is SYS_71 for all the folder of the
> form. I don't understand what you mean when you want
> me to set the val_on to this datasource
I looked at the XML source of another system form and the tabs had val_on="SYS_whatever". With my own forms I set val_off="N" and val_on="Y". I remember having had some problems there, but I can't put my finger on it now.
> - item group
> I'm using SBO 6.5, I can't find help on that, maybe
> it's only on 2004.
No, it's 6.5. It's not in the documentation but you will find it somewhere inside the guts of this forum. As I said, I once had trouble adding tabs cleanly to a custom form using XML.
Of course, all this is just blindly stabbing into the dark. What else can we do?

Similar Messages

  • Update a system form with XML: empty screen when this is a target document.

    Hi,
    It is possible to update a system form with an xml file.
    In the UI_Application.LoadBatchActions(xmlDoc). In the xmldocuemnt I update a system form by adding controls on it. This all works fine, except one (big) problem.
    Assume that I Alter the 'Good Receipt PO'.
    This document can be the target document of a Purchase order document. When you open a PO and click the icon on the toolbar for going to the target document, you see the target document filled in, in OK (view) mode.
    When you alter the 'Goods Receipt PO' form with XML you get an empty goods receipt form, in Add mode.
    Is this a known problem, how can I solve it?
    Thanks in advance
    Eddy

    Hi Florian,
    The XML looks like:
    <?xml version="1.0" encoding="UTF-16"?>
    <Application>
       <forms>
          <action type="update">
             <form AutoManaged="1" BorderStyle="0" FormType="143" ObjectType="20" SupportedModes="15" appformnumber="143" client_height="424" client_width="570" color="0" default_button="1" height="458" left="207" mode="3" pane="1" title="Goederenontvangst (bestelling)" top="23" type="0" uid="F_233" visible="1" width="578">
                <items>
                   <action type="add">
                      <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="19" left="434" linkto="" right_just="0" supp_zeros="0" tab_order="830" text_style="0" to_pane="0" top="398" type="4" uid="100001" visible="1" width="85">
                         <AutoManagedAttribute>
                            <Attribute description="editable" id="2" modeAdd="1"/>
                         </AutoManagedAttribute>
                         <specific caption="Container"/>
                      </item>
                   </action>
                   <action type="update">
                      <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="19" left="315" linkto="2" right_just="0" supp_zeros="0" tab_order="1160" text_style="0" to_pane="0" top="398" type="4" uid="68" visible="1" width="114">
                         <AutoManagedAttribute>
                            <Attribute description="editable" id="2" modeAdd="1"/>
                         </AutoManagedAttribute>
                         <specific caption="Voorfactuur"/>
                      </item>
                   </action>
                </items>
             </form>
          </action>
       </forms>
    </Application>
    Thank you very much for trying this.
    Eddy

  • C# Example: Update existing form using XML

    I am searching for an C# example to manipulate existing forms using XML. The result I want to achieve is to add a button on the Item form (10003).

    It must be possible. Look for a discussing about this topic at Re: Update a system form with XML: empty screen when this is a target docum for example.
    The main steps are:
    1. Get XML system form
    2. Replace UID
    3. Update the system form using XML
    4. Load 'new' form.
    The problem is that I don't have a good example how to 'Get' and 'Load' the XML using C# in Visual Studio 2005. It is a little bit frustrating, because I can't get the whole picture...
    Do you still think it is better to load a new form instead of changing the original?

  • Updating Items in a form using XML

    Hello all,
    I have a form loaded in SBO. In some conditions I want to disable some items like EditTexts, CheckBoxes, ComboBoxes in the form. Some times I have to enable them.. Since there are more controls in the form I would like to use an XML for doing this.
    But when I tried an XML, it did not work for the Enabled property. But it is working for Visible Property.
    Do anybody know how to update the XML so that it will work fine?
    This is the sample XML used for this purpose.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
    <forms>
      <action type="update">
       <form FormType="MYFORM" uid="MYFORM_1">
        <items>
         <action type="update">
          <item uid="cmbSlsPr" type="113" left="125" enabled="0" visible="1" />
          <item uid="txtCustRef" type="16" left="125" enabled="0" visible="1" />
         </action>
        </items>
       </form>
      </action>
    </forms>
    </Application>
    Thanks in advance.
    Anoop
    Edited by: Anoop Krishnan on Aug 8, 2009 12:43 PM

    Hi Anoop,
    Yes, I update forms using XML.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
         <forms>
              <action type="update">
                   <form FormType="133" uid="">
                        <datasources>
                             <userdatasources>
                                  <action type="add">
                                      <datasource uid="DSItemUID" type="9" size="100"></datasource>
                                       <datasource uid="DSDocNum" type="0"></datasource>
                                  </action>
                             </userdatasources>
                        </datasources>
                        <items>
                             <action type="update">
                            <item uid="FldEDI" type="99" left="384" tab_order="0" width="64" top="98" 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="0">
                                <AutoManagedAttribute></AutoManagedAttribute>
                                <specific caption="EDI" AffectsFormMode="0" val_on="8" val_off="0">
                                    <databind databound="1" table="" alias="SYS_208"></databind>
                                </specific>
                            </item>
                            <item uid="FldOther" type="99" left="448" tab_order="0" width="74" top="98" 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="0">
                                <AutoManagedAttribute></AutoManagedAttribute>
                                <specific caption="Outra Info." AffectsFormMode="0" val_on="2" val_off="0">
                                    <databind databound="1" table="" alias="SYS_208"></databind>
                                </specific>
                            </item>
                                 <item uid="ExportEDI" type="4" left="300" tab_order="0" width="80" top="150" height="20" visible="1" enabled="1" from_pane="8" to_pane="8" disp_desc="0" right_just="0" description="" linkto="rtgEDI" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Exportar EDI"></specific>
                                  </item>
    Regards,
    Vítor Vieira

  • UI: Save system form as xml

    Hi,
    I tried to export a system form like the delivery note form to a XML document, but it doesn't work.
    For the forms I created with the Screen Painter it works without problems. I can run an import or export and I always receive an XML document.
    For the system forms I didn't get a XML file at all.
    Are there any code examples or help files that could help me with this export?
    I already searched the forum for this topic but I can't find one that answers my question.
    Perhaps someone can help me solving this problem.
    Regards,
    Dennis

    > Are there any code examples or help files that could
    > help me with this export?
    Use the GetAsXML method to get every form you want as XML. This example copies the Sales Order form as XML to the clipboard.
    If pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 Then
    .... Clipboard.SetText SBO_Application.Forms(pVal.FormUID).GetAsXML
        End If

  • Update multiple InDesign documents using XML

    I am looking for a solution to update multiple files using XML.
    We have over 100 resumes in indesign and each resume has about a dozen projects (name, size, cost, location)
    I would like to keep all of the projects in a master file "projects.xml" and then basically populate each resume from this file. This would allow me to make one change to a project and have that project update across all the resumes.
    This file would be edited and probably rearanged frequently. I have a basic understanding of XML but am not sure how moving the order of projects within the XML file will effect the resumes.
    My question is what type of issues would I be faced in working this way and how could I tackle them. Any workflow or advice would be very helpful.
    -Justin

    In my understanding, the order of different elements in the XML file wouldn't matter - the order is set by the style sheet (XSLT) file.
    I can't give any real suggestions though, except to consider a third party plugin which would make any XML solution much easier - XMPie, DesignMerge, StudioID etc. You could then reference a database (Access/Excel/csv) containing columns for name, project1, project2... and set the project info to only display if there is a corresponding entry in the database file.

  • Which is the good event to use to update on system form

    Hello,
    I have a table linked to the business partner.
    I added on the Business Partner form a grid where the user can add/remove data.
    I want to update the table linked to the BP when the user click on the update button on the BP form but :
         - I don't wan to update my data if BO throw an error when Adding/Updating the BP
         - I want to be able to cancel BO update if the update of my data throw an error.
    Can I do this ? if yes on which event ? et_FORM_DATA_UPDATE ?  how can I cancel BO update ?
    I do get the BO information if the update was fine with  BusinessObjectInfo.ActionSuccess   but how/when can I cancel t updates if mine is not working ?
    I cannot use SP_transactionNotification... I have to use the DI..
    Thank you for your help
    Sébastien

    Sébastien,
    ca marche comme sur de roulette?
    You have to use 2-steps process (both inside FORM_DATA_UPDATE):
    1. your custom data verification (before = true; if verification is failed => bubble = false)
    2. your custom data commit (before = false; this event will not be generated if the verification failed)
    HTH

  • Fill in form using XML data source usable in Reader

    I have a simple example of a scenario we need to solve. Different branches will fill out a form (designed in LiveCycle 8) and by entering their branch number static information will be filled in. I want to store the static infomation for all branches in an XML sheet that will be stored on a shared folder on the intranet.
    The problem I have is getting the script to run in Reader. In preview in the Designer and using the import data function of Acrobat Pro it works fine. I think I am missing the script to import the data to work in Reader. I have not been able to find anything in the documentation to point me in the right direction. I have also had a case open with Adobe support for 2 months.
    Any help would be appreciated.
    Kris
    Below is the script in the exit event of the Text field BranchNumber:
    ----- BranchInfo.#subform[0].BranchNumber::exit: - (FormCalc, client) ------------------------------
    xfa.host.resetData("xfa.form.BranchInfo.#subform[0].Party_Code")
    Party_Code.clearItems()
    var BList = ref(record.Branches)
    for j=0 upto (BList.nodes.length -1) do
    xfa.resolveNode("BranchInfo.#subform[0].Ph") = BList.nodes.item(2).name
    if (BList.nodes.item(j).BranchCode.value == $) then
    xfa.resolveNode("BranchInfo.#subform[0].Full_Company_Address") = BList.nodes.item(j).Full_Address.value
    var List = ref(BList.nodes.item(j).SPCS)
    if (List.nodes.length == 1) then
    xfa.resolveNode("BranchInfo.#subform[0].Party_Code") = BList.nodes.item(j).SPCS.SPC.value
    elseif (List.nodes.length > 1) then
    for i=0 upto List.nodes.length -1 do
    BranchInfo.#subform[0].Party_Code.addItem(List.nodes.item(i).value,"")
    endfor
    endif
    xfa.resolveNode("BranchInfo.#subform[0].Ph") = BList.nodes.item(j).PH.value
    xfa.resolveNode("BranchInfo.#subform[0].Fax") = BList.nodes.item(j).FAX.value
    xfa.resolveNode("BranchInfo.#subform[0].Member") = BList.nodes.item(j).Member.value
    break
    endif
    endfor
    Below is the xml data file for this test:
    <BranchInfo>
    <Branches>
    <Branch>
    <BranchCode>123456</BranchCode>
    <Full_Address>123 First RD #02 BOX 2222, DARTMOUTH, NS, B7W 1X9</Full_Address>
    <PH>9025551234</PH>
    <FAX>9025556789</FAX>
    <Member>991AP991P</Member>
    <SPCS>
    <SPC>NS-6379</SPC>
    </SPCS>
    </Branch>
    <Branch>
    <BranchCode>123882</BranchCode>
    <Full_Address>BOX 55 Second ROAD PLAZA, ST JOHN'S, NL, A9N 1X1</Full_Address>
    <PH>7095552345</PH>
    <FAX>7095557890</FAX>
    <Member>991AP222P</Member>
    <SPCS>
    <SPC>NL-706</SPC>
    </SPCS>
    </Branch>
    <Branch>
    <BranchCode>123333</BranchCode>
    <Full_Address>333A Third ST, ST STEPHEN, NB, E9A 2Z3</Full_Address>
    <PH>5065553333</PH>
    <FAX>5065559999</FAX>
    <Member>991AP333P</Member>
    <SPCS>
    <SPC>NB-10269</SPC>
    </SPCS>
    </Branch>
    </Branches>
    </BranchInfo>

    Hi Jeroen,
    to have a user fill in, you first need to create a Web Dynpro application providing the offline form, e.g. through a download - tutorial at http://sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/2dd3dbcd-0401-0010-55b8-b10808ff688e - or an e-mail - tutorial at http://sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b040e6cd-0401-0010-268d-f67cf4904358
    On the return trip, the user-entered data is stored in the SAP backend via the Web Dynpro context. (You do not store the raw XML, the data is back-converted by ADS to Java.)
    In the fourth step, you will have to provide a Web Dynpro
    application with an online form, which can be part of the same project, but basically generates the form again for completion.
    If you want to use the same form that was submitted, you have to have your app store the submitted PDF (do not submit only the XML) in the backend (through the WD context), and then call that one up in the online scenario.
    Cheers,
    Markus

  • Do I need to have the SDK to update a PDF form using an HTML form for data entry?

    I would like to update as many PDF forms as possible based on
    the users initial log-in information so that they are not
    constantly , and repetitively entering basic information.
    Can this be done using Javascript and does it require the SDK
    to perfom?
    I would appreciate your help with this real-world scenario.
    Thanks

    Hello
    I am using Web Client with the DownLoadFile() option to download files from a site.  If too many requests come in too fast it will banned that address for 24 hours.  (A DDOS security measure) I need to have the program wait until the file
    is downloaded before making the next request but be running in the background so not to freeze the application.  A progress form will allow the user to know the status of the downloads. 
    I see something about asynchronous downloads but do not seem to understand how I would make use of it or if it is the method I want to use.
    If someone could point to or give a good example of what I need to do, it would be most welcome.
    David Edwards
    David,
    There are two ways which come to mind here, both using the WebClient:
    The first is that in a BackgroundWorker, you use the synchronous download method. The synchronous method is a blocking call so obviously it can only get one at a time, and when that one is completed, the loop then starts the next.
    The second way - also in a BackgroundWorker - is to use the asynchronous method. The reason for this is because only the asynch method provides events to monitor progress and know when the file has completed. This gets a bit more involved because you're
    still processing them in a loop, but it's definitely something that can be done - I've done it several times.
    You haven't really given many details, so beyond this general conceptual description there's not a lot more that can I can explain, but your goal definitely can be achieved using a WebClient.
    I hope this helps. :)
    Still lost in code, just at a little higher level.

  • Update Resource Field Form using Post Process.

    Hi all,
    I need to set a field in a GTC resource form field.
    I have an ID and need to set the value NAME based in this ID, like this:
    ID NAME
    1 RESOURCE_RESP1
    2 RESOURCE_RESP2
    This must be done at the time the resource is provisioned.
    Anyone can help me?
    Regards,
    Joel Farias

    I am looking for the same... can you please share how did you got this working
    thanks

  • Database updation using XML and stored Procedure?

    Hello,
    I want to perform updation in multiple tables using XML files.Please suggest can I do updation using xml and stored procedure.
    If yes then which is more efficient and takes less time.
    1.Updation using xml files only
    2.Updation using xml files with stored procedure.
    3.Stored procedure alone.
    If direct xml and stored procedure communication is possible.then please write how.
    Thanks in advance for any help.

    Here's a sample. The next code drop of the XSQL Servlet will make the easy-to-do from within XSQL Pages:
    package package1;
    import org.w3c.dom.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Class1 extends Object {
    public static void main( String[] arg ) throws Exception {
    Connection conn = getConnection();
    CallableStatement ocs = conn.prepareCall("begin ? := App.HotItems('PAUL'); end;");
    ocs.registerOutParameter(1,OracleTypes.CURSOR);
    ocs.execute();
    ResultSet rs = ((OracleCallableStatement)ocs).getCursor(1);
    OracleXMLQuery oxq = new OracleXMLQuery(conn,rs);
    System.out.println(oxq.getXMLString());
    oxq.close();
    rs.close();
    ocs.close();
    conn.close();
    public static Connection getConnection() throws Exception {
    String username = "scott";
    String password = "tiger";
    String dburl = "jdbc:oracle:thin:@localhost:1521:xml";
    String driverClass = "oracle.jdbc.driver.OracleDriver";
    Driver d = (Driver)Class.forName(driverClass).newInstance();
    return DriverManager.getConnection(dburl,username,password);
    null

  • Create offline interactive forms using webdynpro java with XML data source

    Hi Gurus,
    I am having a scenario like below:
    Sales guy request for order list online from portal- Sytem receives the request and creat XML file- from xml file need to create a Offline interactive form-Sales guy fills it offline at customer site- uploads in portal -on submit xml has to be generated with captured data at customer site-Process to  ECC.
    So my questions are:
    How to create the offline interactive form  from XML?
    Once filled offline interactive form uploaded into portal how to create XML again from pdf ?
    Please give some idea on this as this is my first Offline interactive form using XML datasource.
    Thanks
    Ravi
    Edited by: Ravi Sunkara on Jul 27, 2010 5:25 PM

    Hi Otto,
    Sorry for replying lately. First of all  I did not get your suggestions as your are editing the same posting.
    Secondly we will be using WDJ. Actually in between SAP Portal and ECC we are having adobe LCES so we need to create Interactive form using XML only. Once it is filled again the form will be submitted to another application which is running on FLEX, which will process the order.
    if you can give me your personal id i can send you the detailed process
    Thanks
    Ravi

  • How to open Batch Details Form using a LinkedButton?

    Hi all,
    I just want to know how can I open the Batch Details system Form, using a LinkedButton from my user form.
    Just like the Batch Number Transaction Report window, from the Batch Column.
    It's difficult because this document don't have the ObjectType.
    Thanks a lot.
    Cheers
    David

    Solved!
    I did this:
    From the MatrixLinkPressedEvent:
    if (pVal.BeforeAction)
                        switch (pVal.ColUID)
                              case "column":
                                BubbleEvent = false;
                                AddOnApplication.Application.ActivateMenuItem("12290");//Form for Batch Details
                                form.EnableMenu("12290", true);
                                bool _runThread = true;
                                while (_runThread)
                                    Thread.Sleep(500);
                                    try
                                        ((SAPbouiCOM.EditText)AddOnApplication.Application.Forms.ActiveForm.Items.Item("40").Specific).Value = _dtGrid.GetValue("ItemCode", pVal.Row - 1).ToString();
                                        ((SAPbouiCOM.EditText)AddOnApplication.Application.Forms.ActiveForm.Items.Item("62").Specific).Value = _dtGrid.GetValue("Batch Hide", pVal.Row - 1).ToString(); ;
                                        AddOnApplication.Application.Forms.ActiveForm.DefButton = "38";
                                        AddOnApplication.Application.SendKeys("{ENTER}");
                                        _runThread = false;
                                    catch (Exception){}
                                    finally
                                        _runThread = false;
                                        form.Freeze(false);
    And that's it.
    Hope this help to someone
    Cheers

  • 'Please Update your System'

    Hey all, i tried to setup a boot camp on a macbook today running 10.5.7 and we received this error...
    'Boot Camp Assistant Can Not Be Used
    You Must update your system before using this Setup Assistant'
    We have run system update again, no updates are available... any ideas? Shouldn't boot camp run on any version of Leopard?
    Thank.

    That's a lot of MacBooks.
    I'm still sifting through threads, but has anyone come across any diagnosis yet? I am having the same problem, although it's anyone's guess as to whether we are all doing the same thing to provoke the issue. I'll gladly do an erase and install (time machine reversion) after remerging my partitions, but I can't right now as I have a project on the go for the next little while.
    What eats me is that on my Mac, I'm so used to there being a solution somewhere, instead of having to nuke everything as is so often the Windoze prognosis.
    I don't know if this is related or not, but the most recent partition-related function I did prior to the problem occurring was installing NTFS-3G and MacFUSE, so I could better exchange files to & from my Boot Camp partition. When my Windows wireless driver disappeared off the face of the planet (even after repairing and later reinstalling BC drivers... probably malware-related, I'm guessing), The only thing I can think of is that Boot Camp Assistant does NOT like MacFUSE or NTFS-3G; or, it doesn't like its partition having its insides/format protocols messed with.
    Hamish

  • Automatically creating non-interactive PDF forms from XML data

    Hi All,
    I am a newbie to the whole Adobe LifeCycle Designer product and have been trying to find a definitive technical article on a way to automatically create pdf documents from template forms using XML data. I can create the XML, I can create the form based on the XML schema but I can't seem to find anything which explains how to automatically associate the form with the each xml file that I create and produce a pdf document based on the xml data.
    The project I am working involves creating marketing brochures, driven from our enterprise databases, to be sent to a printer. No user interaction is required, and I estimate that we'll need to create around 500-1000 pdf's per day.
    To me this seems like it should be quite a simple task but I can't find anything which gives me a starting point.
    Any help would be greatly appreciated.
    Regards
    Nick Smith

    Hi Nick,
    Just curious if you figured out how to generate a PDF out of a template? I've a similar requirement where I transform XML schemas into templates, convert the template into a PDF document, and at run time bind the PDF with the form data.
    To sort of answer your question of how to bind an XML instance file to a form, if that form is an XML-FORM, then all you'd need to do is open that document as a PDF document using the PDFFactory, and invoke the importFormData() method on it, passing the XML instance as the input stream.
    The harder part though is getting the PDF out of the template in the first place, without using any adobe user interface period.
    Karthick

Maybe you are looking for