Xml form screen scraper

Hello,
I have created a form with screen scrapers. Now I want to load it when I open the form of purchase orders through the creation of an XML file. Where mistake? Thanks
Dim creationPackage As SAPbouiCOM.FormCreationParams
    Dim oItem As SAPbouiCOM.Item
    Dim oButton As SAPbouiCOM.Button
    Dim oStat As SAPbouiCOM.StaticText
    Dim oCompany As SAPbobsCOM.Company
    Dim lRetCode As Integer
    Dim msgbox As SAPbobsCOM.Message
    Dim oapplication As SAPbouiCOM.FormCreationParams
Private Sub B1_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
        If (pVal.MenuUID = "142") And (pVal.BeforeAction = False) Then
        End If
        LoadXMLForm("parametri.srf")
        If Not (oForm Is Nothing) Then
            creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
            creationPackage.UniqueID = "BS_F_40"
            creationPackage.FormType = "-1"
            creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
            creationPackage.XmlData = "form_mio.xml"
            oForm = SBO_Application.Forms.AddEx(creationPackage)
            oForm.AutoManaged = True
            oForm.SupportedModes = SAPbouiCOM.BoAutoFormMode.afm_All
            oForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE
            oForm.Visible = True
            ' Dim sfile As System.IO.FileStream
            LoadXMLForm("parametri.srf")
        End If
        ' Dim sfile As System.IO.FileStream
    End Sub
    Private Function LoadXMLForm(ByVal sFile As String) As Boolean
        Try
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
            Dim oCreationParams As SAPbouiCOM.FormCreationParams
            Dim s As String
            Try
                s = "C:\Documents and Settings\neos\Desktop\screen painter\primo_form.srf"
                oXMLDoc = New Xml.XmlDocument
                oXMLDoc.load(s)
                oCreationParams = oapplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                oCreationParams.XmlData = "form_mio.xml"
                oApplication.Forms.AddEx(oCreationParams)
                Return True
            Catch e As Exception
                oApplication.MessageBox("Error: " & e.Message)
                Return False
            End Try
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oCreationParams)
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oXMLDoc)
        Catch ex As Exception
            oApplication.MessageBox("Error: " & ex.Message)
        End Try
        GC.Collect()
    End Function

Hi Lorenzo,
Do one thing plz copy all the data from sample code and change the path and file name whatever you are using in your pgm only..
if after all you get the error write the code..
Kind Regards
Yogesh

Similar Messages

  • Screen scrape Oracle 9iAS web based forms

    Hello Friends,
    We are currently in the coding stage of a screen scraping application.But we are facing a serious problem,that might cause us to abandon this project altogather.We are supposed to screen scrape Oracle 9iAS based Oracle Forms,precisely speaking we have to trace the Msgboxes and Statusbar warnings,which are thrown at runtime during any transaction by the system.Could anyone help?
    Please reply ASAP.
    Thanks and Regards,
    Samir P
    Bangalore

    Hi,
    though this is not security related: You can use JavaBeans within a Bean Container in Oracle Forms. This allows you to add any Java you like to the Forms front end. However, you may have to dig a bit into the Forms client for this.
    Frank

  • Unable to edit the content of an XML form

    Hello Experts,
    I am facing a weird issue after updating my XML form.
    Earlier scenario :
    We were displaying only the Title of the news along with the content.
    New scenario :
    We had to display image also along with the title and content of the news.
    Changes i did :
    I have updated my XML form with adding an Image UI in the XML form.
    Issue :
    After adding the image UI and generating the project in the content part it is giving a message as in the image below.
    Due to this message as "Loading content please wait" i am not able to save the content of the news due to which i am getting dump on the screen.
    Please help.
    Its an urgent issue.
    Thanks in advance.
    Regards,
    Gazala

    Hi gazala,
    Hope you are doing good.
    Is the portal 7.3? can you let us know the version? Trigger 5-6 thread dumps with 30 secs interval each for your server when you reproduce the issue.
    More info:
    http://wiki.sdn.sap.com/wiki/x/VYZ3Cw
    SAP Note No. 1020246-Thread Dump Viewer for SAP Java Engine
    SAP Note No. 710154-How to create a thread dump for the J2EE Engine
    This will help check this further
    Hope this helps.
    Kind Regards,
    Hemanth
    SAP AGS

  • How to make use of the XFList in the Function Bar  of the XML Form Builder?

    Hello:
        Now I am creating blog using the XML Form Builder.
        In the bolg publishing interface of the SDN ,there is a tpoics list ,in this list you can select single or multiples.
        I find the XFList in the Function Bar of the XML Form Builder.But I don't know how to make use of this list?Who can help me?
    lexian
    Thanks a lot!

    In the Attributes of a screen field, there is an attribute called "Groups". This has 4 options for input (4 text boxes)
    SCREEN has 4 fields GROUP1, GROUP2, GROUP3 and GROUP4.
    The first text box under Groups attribute corresponds to SCREEN-GROUP1,
    2nd text box for SCREEN-GROUP2
    3rd text box for SCREEN-GROUP3
    4th text box for SCREEN-GROUP4
    Hope this helps.
    Thanks,
    Balaji

  • "Feedback" problem in XML Forms

    Hi Forum,
                    I have created an xml form (for creating and showing articles similar to News) using form builder. In the "show" form i placed a button and assigned the action "Details" to it (So when it is clicked takes to Details Screen). Created a KM Navigational iview that uses my custom layout "myNewsExplorer" in which i have removed some of the command groups like properties, permissions etc.. as i dont want the end users to see these options in the details screen. But to my surprise the feed back button's action is not using myNewsExplorer layout and it is directly pointing to AdminExplorer and giving me all the unwanted command groups and commands. How can i make the feed back option to point to my custom layout set.
                     I dont want to use "give feedback", "feedback" commands at the resource renderer level, since they dont provide facility to open the given feed backs and read (They only allow to give feed back and just list the given feedbacks).
                     Now i am trying to use two feed back buttons in the show form, the first one with action - Details (for admin). I want to get this button to only specified admin user and not to end users. How can i capture the current logged in user from the xml form and put a condition that this button should only appear to admin user ?
                     Please share some ideas. I need to deliver this functionality immediately (working at client place).         (Points Assured)
    Thanks
    Ramesh Kotagiri

    Hi,
    Your requirement is to Browse from different km folders based on some dropdown selection in xml form.  is n't?
    We also face similar kind of problem, in which we have to enable/disable one fields depends on value of another fields.
    As i know it is not possible in XML Form. We acheived our requirement by adding some javascript in generated xml form.  Since it is not a recommended solution i am not suggesting to do so.
    Please ask suggestion from others also.
    Regards
    Baby

  • XML Forms and Posting Directly to iView

    Hey Everyone,
    This is my first time posting a question on SDN, so please forgive me if I leave anything out.
    I have a question regarding XML Forms and iViews. We are using EP 6.40 SP12.
    I would like to have an XML Form filled out and have it's contents sent directly to an iView which is located on the opening screen of our Portal. The scenario is that every Tuesday the form will be filled out, saved and will appear on the user's Portal. An appropriate folder structure has been created in KM to hold all the forms, etc...
    Any help would be much appreciated,
    Cheers
    Rav

    Hi Ravinder,
    After generating the forms,you have to create iViews for the Forms,Authoring iview and Render List iView.
    These iViews can be assigned to users,or assigned to some page using Delta link.
    The updated news will be available as a List on the Browser iView,which can be clicked to drill details.
    The properties are set in the iView properties of Layout Set ,for example for authoring iView
    Layout Set = NewsExplorer
    For render List iView
    Layout Set = NewsBrowser
    Path to Initially Displayed Folder /documents/myNews
    The values will change depending upon the form name.
    Please go through this document for a detailed example
    <a href="https://media.sdn.sap.com/html/submitted_docs/Best_Practices/EP/documentation/How-to_Guides/KM/How%20to%20create%20XML%20forms.pdf">https://media.sdn.sap.com/html/submitted_docs/Best_Practices/EP/documentation/How-to_Guides/KM/How%20to%20create%20XML%20forms.pdf</a>
    This Document gives a step by step solution on using XML forms.
    Regards,
    Siddhartha
    Message was edited by: Siddhartha Jain

  • XML Forms: save form in "Show Form" Mode

    Hi All,
    Is there a way to have 2 edit screens in XML Forms?
    My scenario:
    1) user creates form
    2) admin reads form and changes the property "status"  to "form read" (a field that the user does not see) and saves.
    Is this possible?
    I can add the controls for the "status" input and save button. 
    But when in Display mode I click on the save button and it errors.
    Cheers,
    Vic
    Message was edited by: Victor Yeoh

    In the URL Generator Service, XML forms CSS file path changed. I've reset the XML forms CSS file path to /irj/go/km//etc/xmlforms.
    This resolved our issue.

  • Path to XML form builder reports in Portal

    Hi Experts,
    I am facing one issue. We have few XML forms builder screens in Portal.
    Those were appearing fine but now one of them is not appearing properly.
    Please let me know under KM , where these reports are stored so that I can check whether these reports.

    Srini,
    The XML forms are under etc-xml forms.
    However, if the forms are not appearing properly, you would have to open it in XML forms builder and check.
    Assign yourself the Content Management role. Check this wiki for more details.
    http://wiki.sdn.sap.com/wiki/display/KMC/XMLFormBuilderinEP7.0
    Regards,
    Sandeep Tudumu
    Edited by: Sandeep Tudumu on Jun 14, 2010 10:16 PM
    Edited by: Sandeep Tudumu on Jun 14, 2010 10:17 PM

  • XML Forms in Web Page Composer (WPC)

    Hi, everybody.
    I need to use XML forms in WPC Containers. To solve this problem, I've used the settings in the post http://help.sap.com/saphelp_nw70/helpdata/en/45/ff64da7aa9703ee10000000a155369/content.htm.
    Now, when I drag and drop the XML in the container, I lost toolbars and layouts. So, I can't save the page, publish it or modify it.
    Any help will be appreciated.
    Best regards,
    José Luis.

    Hello, Sandeep.
    According to our consultant, is SP 15 Patch 1, but I'm not quite sure. ¿Where can I find the version information?
    On the other hand, I've published an screen capture on this URL: http://www.uexternado.edu.co/sdn/XML_forms_WPC.html. There you can see my problem's description.
    Regards,
    J.L.

  • How can i exclude information pages from being printed in a dynamic XML form?

    Hi there,
    i am building a dynamic XML form in Adobe LiveCycle Designer ES2.
    In this form there are pages with information that help the end user fill out the form, but to use - those who process the forms after they have been sent to us - these pages with information are irrelevant.
    Is there a way to tell the form to omit these pages when printing.
    Currently i have set the pages mentioned to be only visable on-screen.  But doing so results in an empty page being printed (only the master page information is visable.)
    Any ideas how i can solve this issue?
    Thank you.

    Create a new master page and set that page to visible screen only. Set your subforms to use that master.

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • XML Forms Builder: Sorting news based on a date field in a XML form

    Hi Experts
    I have a requirement and I am stuck up in finding a solution. I have a XML form and this has been mapped to a folder in KM. It publishes news. In the collection renderer settings there is an option to sort the news ascending or descending based on created/modified criteria.
    The requirement is to sort the news based on a date field in XML form. Can you experts help me in getting the solution for same?
    The users who post the news in our portal needs the information to be sorted based on a date field shown.
    Thank you
    Best regards
    Ramamoorthy D

    Hi Experts
    I have not got any solution for this issue. Can any of you get me some clue to work on this issue with sorting news based on a date field in a XML form?
    I removed the property link from the screen field Input field.
    Thank you
    Best Regards
    Ramamoorthy D

  • Getting started with create dynamic XML forms

    I work for a software vendor that is developing a C#.Net data entry system designed to replace a paper process.  The original forms come from a 3rd party and are paper form, such as a tax form, loan application form, etc.  The goal is to be able to enter data on the screen in a form that looks like something like the original form and then to print out the form that looks identical to the form on the screen.
    The system is designed to allow the end user to create the forms.  The process is that the end user creates the fields in the C#.Net application, then pick from those fields to build the form. During data entry, the fields are both pre populated by the C#.Net application and the results are saved back to the C#.Net application.
    The data entry and print all needs to be embedded into the core C#.Net application and NOT rely on any outside systems like the LifeCycle system.
    Is there some way to embed PDF creation in the C#.Net application (or in a traditional C/C++ application for that matter)?  I am under the impression that is what dynamic XML forms is all about.  Is dynamic XML forms an Adobe thing or an open standard?

    You are funny  I clearly state that I do *NOT* want to use LiveCycle Designer and you go tell me to post a question in that forum  Hopefully someone else will come along which can actually address my questions

  • After upgrade date selection does not work in xml forms

    Hi Experts,
    since we upgrade the portal from 7.0.19 to 7.0.24 we have a problem with the timestamp in the xml forms in combination with IE7. When we click on the date selction button, the date screen appears and the form disappears. The only option we can choose is cancel and then the date selection screen disappears and the form is not comming back. Selecting a date en choose ok does not work. I tried with IE6 then it works fine. Before the upgrade it works fine with IE7.
    How to solve this?
    thanks in advance.
    Vo.

    I created a OSS message and the answer is : [Note 1491775 - XML Forms locked when closing browser window|https://websmp130.sap-ag.de/sap(bD1ubCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1491775]
    gr
    Vo.

  • Nested XML Forms

    Hi,
    I'm using the XML Forms Builder to try to create a "How-To" iView where some content managers would be able to update information in a standard form that would be later on displayed to the users.
    I'm able to do this in form of a "News" publishing, with the Edit, Show and RenderListItem forms and using the NewsExplorer and NewsBrowser iViews. However, the requirement here is that we have a kind of nested forms: each How-To item would have a series of "steps" that would be added one by one, in the same way that the original items are added.
    So, in the first screen, the content manager would click on "New How-To" and would be taken to the creation of a How-To where he/she would input a title, date, author and some other information. In this screen, he/she would then be able to click on "New Step" where he/she would input one image and the text for that step, and click on Save. Then he/she would be taken back to the How-To creation screen, and would have the option to create another step or to save the How-To.
    After saving the How-To, it would appear on the original list (RenderListItem form) for the user to click. When clicking on the How-To, the "Show" form would display a list of the steps for that particular How-To, in the same way the RenderListItem form does for the list of How-Tos.
    Do you know if (and how) it is possible to do?
    Thank you,
    Daniel

    Patricio,
    I need to add another kind of functionality to XML forms. My client wants to make an upload of an attached file in one click.
    In other words, doesn't want to need to first make the upload to KM and after make the link in the XML Form.
    Can you give me any idea in order to accomplish this?
    Thanks in advance
    Patricio

Maybe you are looking for

  • Issue with Task in UWL

    Hi Guys,              I got issue in Production like , if the employee applying leave ,all the requests are going under one task item in uwl. Please help me out.

  • HT1414 I have a used iphone that has a passcode on it I don't know

    I have a used iphone that has a passcode on it I don't know. I need to reset it but it won't let me connect it to itunes until I turn the passcode off which I can't because I don't know it.

  • 3d plot labels

    How can I add text labels to individual points on a 3D plot? And easily change the colour of individual points? .. And how do I add graph labels?   I've produced the attached to help me learn about transformation matrices, but it's not very user frie

  • Can InDesign CS6 coexist with CS5.5 Production Premium?

    I have a user with Adobe CS5.5 Production Premium installed.  They want to purchase InDesign CS6.  Will ID CS6 install and work correctly if the rest of the Adobe apps are CS5.5??? Bob Reed AARP

  • Can I control how often the scheduler wakes up?

    We're experimenting with parallelizing long running jobs by breaking them up into smaller mutually exclusive jobs. The majority of the small jobs run in a subsecond timeframe. When I send these jobs to the job queue via dbms_job, I get respectable th