How to covert  from .srf  form to xml form

hi.....  plz anybody help me  to find this soloution... i am  not familiar with this enviorment
how to covert  from .srf  form to xml form,
it's very needed
plz help me.................

Hi Raj,
You can do that way, but at times what happens is, if u try changing the extension while saving it saves as "<b>Form.xml.srf</b>" wherein, still its recognized as a srf file.  So, you save it as an srf first, and then, change (rename) the extension from .srf to .xml
Satish.

Similar Messages

  • How to redirect from Infopath form from old sitecollection to new sitecollection

    We have moved sharepoint infopath form to new site collection i.e. QA to Prod.
    The link for infopath in email is pointing towards QA. Is there any way that when user open the link for infopath from email. It should redirect to production infopath item.
    e.g.
    The link in Email: https://qaserver/sitename/formlibrary/req1.xml. Could it be redirected to
    https://prodserver/sitename/formlibrary/req2.xml
    Any idea?

    Hi fsd,
    For troubleshotting your issue, let's verify the followings:
    Where was the email from? Whether it was from the workflow approval email.
    How did you move the SharePoint InfoPath form? Whether you use Export/Import to do it.
    If the link was the link linked the item title in a workflow Approval email, please try to re-publish the workflow.
    If the link was defined by yourself in a workflow email, you need to change the URL manually in the email action, then publish the workflow again.
    If this issue still exists, please feel free to reply.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • How to connect from a form modulo at two different db user

    i a button of a module form i have tried this
    forms_ddl ('connect scott/tiger@db9');
    There was no error during compilation, but at runtime the connect don't change !
    Noone have any idea to do this ??

    Mike,
    keep in mind that Exec_SQL.Open_Connection() does allow you to query a second database connection, but not to place datablock on.
    An alternative to this would be a database link from teh database you originally connected to.
    Frank

  • How to migrate from oracle forms 6i....

    Hi......
    i'm currently using Forms 6i having abt 150 forms nad 2oo reports, now i want to migrate all my forms and reports to oracle 10g/11i.
    Which will be the better option to migrate 10g/11i???
    which will be easier to migrate 10g/11i ??
    Is there any complication in migrating from 6i to 10g/11i??
    Will there be any dataloss if i migrate ??
    can i install oracle forms and reports 6i ,10g and 11i in single system ??
    thanks in Advance,
    Regards,
    santosh.Minupurey

    Are you currently deployed on the web or as c/s. Generally speaking for upgrading Forms its a case of open in the builder, regenerate and run. For c/s to web there may be some extra steps to do but generally speaking most Forms will run out of the box.
    CHeck out otn.oracle.com/formsupgrade
    There is also a batch option to help you and there are of course Oracle partners who can help as well.
    Regards
    Grant

  • How get data from business object to xml file

    Hi all,
    My new problem is ,,
    In my application, I have check list of selected business partners. In that , I want to save the checked oBusinessPartners complete information to an XML file(created dynamically),
    How to do?
    Thanks in advance
    shashi kiran

    Shashi Kiran,
    Can you explain me detail where
    you want to save check business partners in xml ?
    Jeyakanthan

  • How to covert from the following string to dateformat given below

    String stodate = "Tue Mar 22 09:13:36 CET 2005";
    Date d = new Date();          
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
      try
         d = sdf.parse(stodate);          
        System.out.println(d.toString());
       catch(ParseException e)
         System.out.println("Unable to parse: " + stodate);
      }I've got ParseException. How to solve the problem

    Didn't you ask this question only a couple of minutes ago?
    http://forum.java.sun.com/thread.jspa?threadID=609178

  • [XQuery] How to transform from JSON Message to XML Message with XQuery

    Hi guys,
    I'm in a job of converting a restful webservice to soap. Tool for convertation uses XQuery.
    Now i need to convert a message like thi link http://jsontoxml.utilities-online.info
    JSON
    "anagrafica": {
    "testata": {
    "nomemercato": {
    "-id": "007",
    "#text": "Mercato di test"
    "data": "Giovedi 18 dicembre 2003 16.05.29"
    "record": [
    "codice_cliente": "5",
    "rag_soc": "Miami American Cafe",
    "codice_fiscale": "IT07654930130",
    "indirizzo": {
    "-tipo": "casa",
    "#text": "Viale Carlo Espinasse 5, Como"
    "num_prodotti": "13"
    "codice_cliente": "302",
    "rag_soc": "Filiberto Gilardi",
    "codice_fiscale": "IT87654770157",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Biancospini 20, Messina"
    "num_prodotti": "8"
    "codice_cliente": "1302",
    "rag_soc": "Eidon",
    "codice_fiscale": "IT887511231",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Bassini 17/2, Milano"
    "num_prodotti": "18"
    "codice_cliente": "202",
    "rag_soc": "SkillNet",
    "codice_fiscale": "IT887642131",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Chiasserini 11A, Milano"
    "num_prodotti": "24"
    "codice_cliente": "12",
    "rag_soc": "Eidon",
    "codice_fiscale": "IT04835710965",
    "indirizzo": {
    "-tipo": "casa",
    "#text": "Via Cignoli 17/2, Roma"
    "num_prodotti": "1112"
    "codice_cliente": "5",
    "rag_soc": "Miami American Cafe",
    "codice_fiscale": "IT07654930130",
    "indirizzo": {
    "-tipo": "casa",
    "#text": "Viale Carlo Espinasse 5, Como"
    "num_prodotti": "13"
    "codice_cliente": "302",
    "rag_soc": "Filiberto Gilardi",
    "codice_fiscale": "IT87654770157",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Biancospini 20, Messina"
    "num_prodotti": "8"
    "codice_cliente": "1302",
    "rag_soc": "Eidon",
    "codice_fiscale": "IT887511231",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Bassini 17/2, Milano"
    "num_prodotti": "18"
    "codice_cliente": "202",
    "rag_soc": "SkillNet",
    "codice_fiscale": "IT887642131",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Chiasserini 11A, Milano"
    "num_prodotti": "24"
    "codice_cliente": "202",
    "rag_soc": "SkillNet",
    "codice_fiscale": "IT887642131",
    "indirizzo": {
    "-tipo": "ufficio",
    "#text": "Via Chiasserini 11A, Milano"
    "num_prodotti": "24"
    "codice_cliente": "12",
    "rag_soc": "Eidon",
    "codice_fiscale": "IT04835710965",
    "indirizzo": {
    "-tipo": "casa",
    "#text": "Via Cignoli 17/2, Roma"
    "num_prodotti": "1112"
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Anagrafica del clienti del mercato-->
    <anagrafica>
         <testata>
              <nomemercato id="007">Mercato di test</nomemercato>
              <data>Giovedi 18 dicembre 2003 16.05.29</data>
         </testata>
         <record>
              <codice_cliente>5</codice_cliente>
              <rag_soc>Miami American Cafe</rag_soc>
              <codice_fiscale>IT07654930130</codice_fiscale>
              <indirizzo tipo="casa">Viale Carlo Espinasse 5, Como</indirizzo>
              <num_prodotti>13</num_prodotti>
         </record>
         <record>
              <codice_cliente>302</codice_cliente>
              <rag_soc>Filiberto Gilardi</rag_soc>
              <codice_fiscale>IT87654770157</codice_fiscale>
              <indirizzo tipo="ufficio">Via Biancospini 20, Messina</indirizzo>
              <num_prodotti>8</num_prodotti>
         </record>
         <record>
              <codice_cliente>1302</codice_cliente>
              <rag_soc>Eidon</rag_soc>
              <codice_fiscale>IT887511231</codice_fiscale>
              <indirizzo tipo="ufficio">Via Bassini 17/2, Milano</indirizzo>
              <num_prodotti>18</num_prodotti>
         </record>
         <record>
              <codice_cliente>202</codice_cliente>
              <rag_soc>SkillNet</rag_soc>
              <codice_fiscale>IT887642131</codice_fiscale>
              <indirizzo tipo="ufficio">Via Chiasserini 11A, Milano</indirizzo>
              <num_prodotti>24</num_prodotti>
         </record>
         <record>
              <codice_cliente>12</codice_cliente>
              <rag_soc>Eidon</rag_soc>
              <codice_fiscale>IT04835710965</codice_fiscale>
              <indirizzo tipo="casa">Via Cignoli 17/2, Roma</indirizzo>
              <num_prodotti>1112</num_prodotti>
         </record>
         <record>
              <codice_cliente>5</codice_cliente>
              <rag_soc>Miami American Cafe</rag_soc>
              <codice_fiscale>IT07654930130</codice_fiscale>
              <indirizzo tipo="casa">Viale Carlo Espinasse 5, Como</indirizzo>
              <num_prodotti>13</num_prodotti>
         </record>
         <record>
              <codice_cliente>302</codice_cliente>
              <rag_soc>Filiberto Gilardi</rag_soc>
              <codice_fiscale>IT87654770157</codice_fiscale>
              <indirizzo tipo="ufficio">Via Biancospini 20, Messina</indirizzo>
              <num_prodotti>8</num_prodotti>
         </record>
         <record>
              <codice_cliente>1302</codice_cliente>
              <rag_soc>Eidon</rag_soc>
              <codice_fiscale>IT887511231</codice_fiscale>
              <indirizzo tipo="ufficio">Via Bassini 17/2, Milano</indirizzo>
              <num_prodotti>18</num_prodotti>
         </record>
         <record>
              <codice_cliente>202</codice_cliente>
              <rag_soc>SkillNet</rag_soc>
              <codice_fiscale>IT887642131</codice_fiscale>
              <indirizzo tipo="ufficio">Via Chiasserini 11A, Milano</indirizzo>
              <num_prodotti>24</num_prodotti>
         </record>
         <record>
              <codice_cliente>202</codice_cliente>
              <rag_soc>SkillNet</rag_soc>
              <codice_fiscale>IT887642131</codice_fiscale>
              <indirizzo tipo="ufficio">Via Chiasserini 11A, Milano</indirizzo>
              <num_prodotti>24</num_prodotti>
         </record>
         <record>
              <codice_cliente>12</codice_cliente>
              <rag_soc>Eidon</rag_soc>
              <codice_fiscale>IT04835710965</codice_fiscale>
              <indirizzo tipo="casa">Via Cignoli 17/2, Roma</indirizzo>
              <num_prodotti>1112</num_prodotti>
    </record>
    </anagrafica>
    I guest this a general case so there must be an example for this somewhere on the internet but i haven't found it yet. So i put on forum and hope someone already knows this.
    Thank for u help.
    Regards,
    Tien86.
    Edited by: tien86 on 01:00 02-12-2011
    Edited by: tien86 on 00:43 03-12-2011

    You didn't mention trying these two steps:
    If the issue occurs with a specific contact or contacts, delete and recreate the contact in the Contacts app. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    ... which are listed as steps 4 and 5 near the middle of this article:
    iOS: Troubleshooting Messages

  • How to run an XML Report from Oracle Forms 10G

    Hello Friends,
    I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
    I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
    All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
    Can this be achieved?
    If so, Kindly advise as this is an immediate work.
    Regards,
    Badrul.

    Hi,
    If I am not wrong the XML publisher is same as BI publisher ...
    There is one document which explains how to integrate using web service
    You want to check this
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    or you can also try web.show_document ..

  • How to go back from SHOW form to RENDERLIST form in XML forms ?

    Hi All,
        I want to know the value of hyperlink property of the label of Show form in order to go back from Show form to Renderlist Form. Its Urgent ..... Plz reply ASAP if anybody knows about it.

    HI Sweta ,
    Havent worked much on this but can refer.
    /thread/4878 [original link is broken]
    /thread/100920 [original link is broken]
    XML Forms - How to render a sequence node?????
    /thread/240057 [original link is broken]
    /thread/147252 [original link is broken]
    /thread/189120 [original link is broken]
    Thanx
    Pankaj

  • How to change  XML  Structure from one form to another form using OO ABAP.

    Hi Experts,
    In my Scenario, i need to do ABAP Mapping in order to change Incoming structure from one form to another.
    My Input to ABAP Mapping (OO ABAP Program)would be :
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
         <D>..........</D>
         <E>..........</E>
         <F>..........</F>
    OO ABAP Program need to read this input and change the XML Structure into below form:
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
          <X>
                <D>..........</D>
                <E>..........</E>
          <F>...............<F>
    Please provide inputs (sample Code) to solve this issue.
    Thanks,
    Kish.
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:51 PM
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:52 PM

    Hi,
    Please provide sample code or Material for converting XML Structure from one form to another using OO ABAP and
    Steps for ABAP MAPPING.
    Thanks,
    Kish.

  • Using elements from input forms to use in reports...can it be done?? XML maybe?

    Hi,
    I am required to create a large number of input forms. For each form item, there is a heading to describe what the form item collects and also additional descriptive text, such as units of measurements etc.
    I intend to create a report that will loop through and display this captured data on a per day basis. As there could be several forms of data multiplied over several days or weeks, this will return a lot of data
    eg.
    Day 1
              Data 1
              Data 2
              Data 3 etc...
    Day 2
              Data 1
              Data 2
              Data 3 etc...
    Day 3
              Data 1
              Data 2
              Data 3 etc...
    etc........
    In addition to the data captured in the database, i also need to furnish the returned data in the report with the headings and descriptive text that was on the forms so that the context of the data is apparent.
    I have thought about how  i may acheive this
    1. check each data item returned and append the appropriate text (could involve hundreds of checks against hundreds of data items....Yikes seems like a bad way to do this
    2. maybe theres another way....reading around i wondered if XML could be used ( i have no experience with XML)
    if the form was constructed with XML, and when the report runs, the returned data is able to be linked to the appropriate XML section and the descriptive text could be appended, rather than be subjected to numerous if...else statements....is this feasible with XML? how could i achieve this?
    Sorry if this is unclear or not what XML is about and i'm way off...I'm learning this stuff as i go along so only have the internet and forums to bounce ideas off.
    Thanks for reading this and if you've got any ideas about how i might achieve this with XML or not...i'm very open to suggestions
    Cheers

    Database is MySQL
    SnakEyez02 wrote:
    Ok, let's take this one step at a time.  First what database type is this going into?  Pointing you in the right direction for that is the best place to start.
    >> MySQL
    Next when you talk about returning the data to a report, are you using a reporting service or what are you trying to do here?
    >> HTML/PHP report created with Dreamweaver with queries to recordset
    Depending on what needs to be done, the type of database and the complexity of the data, I have found that simply entering the data into the database and running a query out of a Sharepoint server or even Excel will usually suffice unless there is something in play that we don't know about.
    >>  Yes i can query the database and use those results, what i also want to use is the extraneous elements, such as headings, descriptive text e.g for an input field that captures temperature, you would have
    Heading              Input element                     Descriptive text
    Temperature:      [ Input temp in box here]     degree centigrade
    I want to know if there is a way of reusing these from my forms into my report by using XML, rather that some onerous checking process to append the text to returned data.
    Thanks for taking the time to consider this..

  • Calling Web Service passing xml from Oracle Forms

    Hello,
    I need to call a .net web service from Oracle Forms that passes in xml data and returns xml data.
    I have seen several examples of how to create a wrapper in jdev and then to import the code
    into forms. I just have not seen any examples that are passing parmameters especially not xml
    as a parameter and that have an active wsdl that I can see how it relates to the code created.
    I have a wrapper but cannot figure out where and what notation to use to include passing in
    an xml object.
    Does anyone have an example passing in xml where the wsdl is still available to see?'
    Forms version 10.1.2.0.2. Jdev 10.1.3.4
    Thanks,
    Linda
    Edited by: lboyce on Jan 5, 2009 2:30 PM

    Also here you have several options...
    1. you can make a PJC (bean) which include a webservice stub generated with axis (you can make a stub and also test a webservice with this tool: www.soapui.org)..
    2. you can make a database webservice with JPublisher and then just call a pl/sql wrapper for this webservice
    4. you can call a webservice with java api (HttpsURLConnection, HttpURLConnection or with apache HTTPClient api) from your PJC for example:
    the code below is used as java stored procedure to call a .net webservice on https
    ====================================
    public static int getPStopnja(String polica, String reg_oznaka,
    String ime_osiguranika,
    String naziv_osiguranika,
    String leasing,
    String[] doc) {
    String l_polica="";
    String l_reg_oznaka="";
    String l_ime_osiguranika="";
    String l_naziv_osiguranika="";
    String l_leasing ="";
    URL url = null;
    HttpsURLConnection conn = null;
    BufferedReader br = null;
    String lineIn = null;
    StringBuffer sb = new StringBuffer();
    OutputStream os = null;
    int rc = 0;
    //kontrole
    l_polica = polica==null ? "":polica;
    l_reg_oznaka = reg_oznaka==null ? "": reg_oznaka;
    l_ime_osiguranika = ime_osiguranika==null ? "": ime_osiguranika;
    l_naziv_osiguranika = naziv_osiguranika==null ? "": naziv_osiguranika;
    l_leasing = leasing==null ? "": leasing;
    String body = "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;";
    body += "&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"https://services.huo.hr/web_ao/\"&gt;";
    body += "&lt;soapenv:Header/&gt;";
    body += "&lt;soapenv:Body&gt;";
    body += "&lt;web:get_pstupanj&gt;";
    body += "&lt;web:param_in&gt;";
    body += "&lt;web:polica&gt;"+l_polica+"&lt;/web:polica&gt;";
    body += "&lt;web:reg_oznaka&gt;"+l_reg_oznaka+"&lt;/web:reg_oznaka&gt;";
    body += "&lt;web:ime_osiguranika&gt;"+l_ime_osiguranika+"&lt;/web:ime_osiguranika&gt;";
    body += "&lt;web:naziv_osiguranika&gt;"+l_naziv_osiguranika+"&lt;/web:naziv_osiguranika&gt;";
    body += "&lt;web:leasing&gt;"+l_leasing+"&lt;/web:leasing&gt;";
    body += "&lt;/web:param_in&gt;";
    body += "&lt;/web:get_pstupanj&gt;";
    body += "&lt;/soapenv:Body&gt;";
    body += "&lt;/soapenv:Envelope&gt;";
    SSLContext sslContext = null;
    try {
    sslContext = SSLContext.getInstance("TLS");
    X509TrustManager[] xtmArray = new X509TrustManager[|http://forums.oracle.com/forums/] { xtm };
    sslContext.init(null, xtmArray, new java.security.SecureRandom());
    } catch (GeneralSecurityException gse) {
    doc[0] = gse.toString();
    return -1;
    if (sslContext != null) {
    conn.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
    try {
    conn.setDefaultHostnameVerifier(hnv);
    } catch (Exception ex) {
    doc[0] = ex.toString();
    return -1;
    try {
    URL st = new URL("https://services.huo.hr/web_ao/web_ao.asmx");
    conn = (HttpsURLConnection)st.openConnection();
    conn.setRequestMethod("POST");
    conn.setRequestProperty("Host", "services.huo.hr");
    conn.setRequestProperty("Content-Length", "" + body.length());
    conn.setRequestProperty("SOAPAction",
    "\"https://services.huo.hr/web_ao/get_pstupanj\"");
    conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
    conn.setDoOutput(true);
    OutputStreamWriter wr =
    new OutputStreamWriter(conn.getOutputStream());
    wr.write(body);
    wr.flush();
    BufferedReader in =
    new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null) {
    sb.append(new String(inputLine.getBytes(),"UTF-8"));
    in.close();
    //System.out.println(new String(sb.toString().getBytes(),"ISO8559_2"));
    doc[0] = sb.toString();
    return 0;
    } catch (Exception e) {
    doc[0] = e.toString() + " ===&gt; " + body + " ==&gt;length= " + body.length();
    return -1;
    ====================================
    best regards
    Edited by: Peterv6i on Jan 6, 2009 8:34 AM
    Edited by: Peterv6i on Jan 6, 2009 8:40 AM

  • How we can populate the form data from 2D barcode

    Hi All,
    Can anyone tell me how we can populate the form data from 2D barcode, will this can be done through script(javascript)?.
    Thanks & Regards,
    Faisal Afzal

    I was hoping someone could put me in the right direction here. I am basically doing the same . I am decodeing the information stored in a 2D Bar code and sending this information to an XML file, then I am trying to combine that xml file with a blank PDF template but the process is failing beacuse there are some additional tag fields the XML data from the  Decode->Extract XML process.
    The XML file from the decode process gives the structure below..notice therer some extra tags (lines 2- 4)
    <?xml version="1.0" encoding="UTF-8"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <xfa:datasets>
    <xfa:data>
    <form1>
    The XML structure that is expected by the PDF template is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <form1>
    So the xml output of the Decode barcode + Extract XML process has three extra lines of tag. Is there a way I could use a process within liveCycle to clean out those three lines in real-time before sending the xml to be recombined with the PDF template.
    Thanks

  • How to catch/read mal-formed xml at Error Handler.

    I have added Error Handler at starting node of Message Flow in a Proxy Service and its(Proxy Service) listenning to a JMS queue.
    So when i am putting a mal-formed XML into the JMS queue, getting "Failure while unmarshalling message: Failed to parse XML text" error at ALSB server log.
    But i am not able to capture the mal-formed xml inside Error Handler node.
    Can any one help me how to capture input mal-formed xml in Message Folw.
    Thanks in Advance.
    Regards.
    Deba

    Re: How to catch malformed xml using error handling mechanism in from a proxy? Had a solution for similar issue. It appears that in-case of malformed XML, $body will not be populated with faulty xml snippet. One way out of this solution is, design your service as Text service and create another service isXML as explained in my above reply.
    Thanks
    Manoj

  • .srf Form ItemUID is invalid from B1DE

    Hi Guys,
    I've created a .srf form from Screen Painter and I am using the B1DE to develop a solution.  There is no UDF or UDT or UDO in the system and the form is not linked to any of the DataSources...So it is displaying well.
    I am trying a simple getText method on an EditText but an error appears....
    EXCEPTION: Form__EBS_FRM_CRDCLM.OnFormLoad raised
    Item - Invalid item  [66000-3]. Form Unique Id: 'EBS_FRM_CRDCLM0',
    Item Unique Id: '4'
    This is my Code.....
    <B1Listener(BoEventTypes.et_FORM_LOAD, False)> _
            Public Overridable Function OnFormLoad(ByVal pVal As ItemEvent) As Boolean
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                'ADD YOUR ACTION CODE HERE ...
                Dim itmCardCode As SAPbouiCOM.Item
                Dim edtCardCode As SAPbouiCOM.EditText
                itmCardCode = form.Items.Item("4")
                edtCardCode = itmCardCode.Specific
                Try
                    Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                    Dim oCFL As SAPbouiCOM.ChooseFromList
                    Dim oCons As SAPbouiCOM.Conditions
                    Dim oCon As SAPbouiCOM.Condition
                    Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                    oCFLs = form.ChooseFromLists
                    oCFLCreationParams = B1Connections.theAppl.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                    ' Adding 2 CFL, one for the button and one for the edit text.
                    oCFLCreationParams.MultiSelection = False
                    oCFLCreationParams.ObjectType = "2"
                    oCFLCreationParams.UniqueID = "CFL1"
                    oCFL = oCFLs.Add(oCFLCreationParams)
                    ' Adding Conditions to CFL1
                    oCons = oCFL.GetConditions()
                    oCon = oCons.Add()
                    oCon.Alias = "CardType"
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                    oCon.CondVal = "S"
                    oCFL.SetConditions(oCons)
                    oCFLCreationParams.UniqueID = "CFL2"
                    oCFL = oCFLs.Add(oCFLCreationParams)
                Catch
                    MsgBox(Err.Description)
                End Try
                edtCardCode.ChooseFromListUID = "CFL1"
                edtCardCode.ChooseFromListAlias = "CardCode"
                Return True
            End Function
    Can any1 help explain what the problem could be?
    Thanks

    Hi Noor,  I have a form created by screen painter in which I'm doing a CFL for a field in the matrix,
    but I think with a few changes it should work for you, too.
    In the 2 methods below, I am creating the CFL and adding it to the form collection via "After Form Load". 
    Since I'm not accessing any fields here, there is no problem with the timing.
    I'm not using any conditions, but you could add yours here:
            <B1Listener(BoEventTypes.et_FORM_LOAD, False)> _
            Public Overridable Sub OnAfterFormLoad(ByVal pVal As ItemEvent)
                Dim ActionSuccess As Boolean = pVal.ActionSuccess
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                form.AutoManaged = True
                AddChooseFromList(form)
            End Sub
          Private Sub AddChooseFromList(ByVal oform As SAPbouiCOM.Form)
                Try
                    Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                    Dim oCons As SAPbouiCOM.Conditions
                    Dim oCon As SAPbouiCOM.Condition
                    oCFLs = oform.ChooseFromLists
                    Dim oCFL As SAPbouiCOM.ChooseFromList
                    Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                    oCFLCreationParams = B1App.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                    oCFLCreationParams.MultiSelection = False
                    oCFLCreationParams.ObjectType = "64"
                    oCFLCreationParams.UniqueID = "CFL1"
                    oCFL = oCFLs.Add(oCFLCreationParams)
                Catch
                    MsgBox(Err.Description)
                End Try
            End Sub
    The matter of connecting the field to the CFL object is a bit different.  I am doing it in "BeforeFormDataLoad" but that only works in update mode (which is fine for me).  You could do it on "AfterFormActivate" but this could happen many, many times.  You would need to create a global boolean to make sure this only happens the first time the activate method is invoked, and if your UDF form could be open more than once at the same time in the same client, then you have the additional issue of knowing which form just started up.  But keeping it simple and assuming one instance of your form is open, the following code is needed (for a matrix column):
            <B1Listener(BoEventTypes.et_FORM_DATA_LOAD, True)> _
            Public Overridable Function OnBeforeFormDataLoad(ByVal pVal As BusinessObjectInfo) As Boolean
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                SetWhseCFL(form)
                Return True
            End Function
            Private Sub SetWhseCFL(ByVal zForm As Form)
            Try
                    Dim itmMtx As Item = zForm.Items.Item("mtx_0")
                    Dim matrix As Matrix = CType(itmMtx.Specific, Matrix)
                    'Dim matrix As Matrix = itmMtx.Specific
                    matrix.Columns.Item("col_0").ChooseFromListUID = "CFL1"
                    matrix.Columns.Item("col_0").ChooseFromListAlias = "WhsCode"
                    matrix.Columns.Item("col_0").AffectsFormMode = True
                    Try
                        matrix.Columns.Item("col_f").Editable = False
                    Catch ex1 As Exception
                        Try
                            matrix.Columns.Item("col_f").Editable = False
                        Catch ex2 As Exception
                        End Try
                    End Try
                    zForm.Update()
                Catch
                End Try
            End Sub
    Whatever you do, don't mistake me for an "expert".  I've gotten this code to work
    but I don't know how good the code is.  Hope it helps, though.

Maybe you are looking for