.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.

Similar Messages

  • 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.

  • 5200: Error executing query: The data form grid is invalid.

    Hi,
    I am getting this error " 5200: Error executing query: The data form grid is invalid. Verify that all members selected are in Essbase. Check log for details.
    com.hyperion.planning.HspException;hasPovDims=1;povXML=<?xml version="1.0"?><datasources><datasource name="Profit " dsid="228af2c3_129ca3dd85c_-77b1" allowEdit="1"><dim name="Period" dimIndex="1" dsName="Profit " keyDimName="Period" memberName="Apr" displayName="Period: Apr"/><dim name="Year" dimIndex="2" dsName="Profit " keyDimName="Year" memberName="FY10" displayName="Year: FY10"/><dim name="Entity" dimIndex="5" dsName="Profit " keyDimName="Entity" memberName="9999" displayName="Entity: 9999"/></datasource></datasources>"
    I have checked that both the systems essbase and planning are same. nothing's different. still i cannot find the exact reason why the report is not working.
    can any please help me.
    btw, i am using Hyperion Planning 9.3.1
    Thanks,
    BIMS

    Hi
    You probably deleted some members from outline that are used by report
    I would recommend you to open you report/grid via rep.client and try to find which elements are abcent
    Regards
    Alexander
    Edited by: Softperson on 19/8/2010 17:38

  • The data form form name is invalid. Check log for details

    Hi all,
    i have just built a planning application from scratch and created my first form.
    i have encountered the error "The data form <form name> is invalid. Check log for details "
    and i have checked the log file.
    It reads as follows
    Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled.
    An error [1012703] occurred in Spreadsheet Extractor.
    Spreadsheet Extractor Elapsed Time : [0] seconds
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [0] non-Dyn.Calc.Cache : [0]
    Transaction [ 0x60001( 0x4d8030e5.0xa0280 ) ] aborted due to status [1012703].
    User [admin] set active on database [Plan1]
    Can any one suggest me how to handle this.
    Thanks in advance

    user9192499 wrote:
    Hi all,
    i have just built a planning application from scratch and created my first form.
    i have encountered the error "The data form <form name> is invalid. Check log for details "
    and i have checked the log file.
    It reads as follows
    Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled.
    An error [1012703] occurred in Spreadsheet Extractor.
    Spreadsheet Extractor Elapsed Time : [0] seconds
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [0] non-Dyn.Calc.Cache : [0]
    Transaction [ 0x60001( 0x4d8030e5.0xa0280 ) ] aborted due to status [1012703].
    User [admin] set active on database [Plan1]
    Can any one suggest me how to handle this.
    Thanks in advance
    ERROR 1012703
    *"Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled."*
    There is an error in a formula(s), therefore, no calculations will work. The problem is that when you have the outline open in Edit mode and you try to 'Validate', it does not identify any of these errors, nor does it write it to a log. However, you can go one by one and validate each formula. So any time you delete a member or modify a member name, be sure that this member is not included in any formula.
    Regards,
    Prabhas

  • How to Print form using SAP Smart Forms which is migrated from SAP Script?

    Hello every one,
         i have a problem in printing form using smart form which is migrate from the SAP Script...so what method i have to use...if any one know the solution for this than plz reply me as soon as possible...

    hi
    when ever u want to migrate the script to smartform u have to chage the driver program also..
    refere this link to convert script to smartform
    convert sapscript to smartform
    c_formname = u r smartform name...
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = c_formname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ...........................CALL SMARTFORM............................
    CALL FUNCTION v_fm_name
      EXPORTING
        control_parameters   = st_control_parameters
        output_options       = st_output_options
      IMPORTING
        document_output_info = st_document_output_info
        job_output_info      = st_job_output_info
        job_output_options   = st_job_output_options
      EXCEPTIONS
        formatting_error     = 1
        internal_error       = 2
        send_error           = 3
        user_canceled        = 4
        OTHERS               = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.

  • Choose File Form Data Create Spreasheet From Data Files

    I am following the tutorial for LC 8 and when I get to the topic titled "Collecting the data in a spreadsheet" it says to "Choose File > Form Data > Create Spreadsheet From Data Files".
    However, when I try to follow that path I do not see a "Form Data > Create Spreadsheet From Data Files" menu option.
    What am I not doing properly? How do I accomplish this task?
    Thanks!

    Thank you so much Paul. I have been trying all day to locate the method by which I could create a spreadsheet using the pdf submit route. I suppose the tutorial in CS4 should have been changed to reflect the changed explanations, but I guess that would be difficult to do. Anyway it worked and I can now do the analysis I need from my customers (lots of pupils!).
    Best wishes,
    Kevin Palmer

  • Last pass password manager and auto form filler have disappeared from my tool bar. How do I get them back or do I have to start all over again.

    I am using Windows Vista. Both LastPass and the auto form filler have disappeared from my toolbar. Is there a way to retrieve this information or do I need to start again?

    Do those extensions still show as installed in Tools > Add-ons > Extensions?
    If not then it is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
    You can also check for problems with the localstore.rdf file if toolbar buttons are missing.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • Multiple print for pdf form retains the value from previous!

    Hello All,
    We have developed Adobe Print Forms for our business requirements.
    When we try to print these forms from the direct transaction, it prints fine. But when we try to select multiple forms to be printed with one transaction, the pdf form generated has data from all the selection!
    Eg: Form printed properly for Delivery Note through transaction VL02N.
    The same form when we try to print for multiple deliveries from transaction VL71, i retains the data and prints one huge form having all delivery data!!
    Please help us out in this issue and let us know what is tha we are missing in this process!
    Thanks a lot for your time and help.
    Gaurav

    Hi ,
    i think that the problems comes form the data you give to the form, do you make a refresh of internal table before populated them ...
    regards

  • How to deploy Forms, Reports and Menu from Client to Server machine

    Dear Experts,
    I have one requirement to deploy the Forms, Reports and Menu from client machine to server machine.
    Deployment involves the following steps :
    1. Firstly we have to search the selected file in a folder where the .fmx is present ( in Server machine) and take the back up of the the existing file in the server (Source and destination paths will be available).
         Ex. If the existing FMB name is TEST.fmx then the backup file should be TEST_sysdate.fmx.
    2. Secondly we have to transfer the file from the client folder (or from another folder of the same server) to the server folder where the back up exists.
    Please help me to search/rename/copy/replace the _.fmx/.rdf/.rep/.mmx_ files from client to server.
    We are using
    9i Database.
    10g Forms and reports.
    SQL Developer tool.
    OS is Windows (Client and Server).
    Help me out to attach a file of front end screen which we are planning to develop. It will give a clear picture on this requirement.
    Thanks :)
    Edited by: 941175 on Jun 17, 2012 9:09 AM
    Edited by: 941175 on Jun 17, 2012 9:12 AM
    Edited by: 941175 on Jun 17, 2012 9:14 AM

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • Forms behavior differences switching from JInit to Sun's Plug-in?

    What differences are there in Forms behavior after switching from JInit v 1.3.1.26 to Sun's 1.4.2_06 plugin?
    We are running Oracle Forms v 10.1.2.2.0, Internet Application Server v 10.1.2, and IE 7.
    Thanks
    KenV

    The biggest differences I have seen has to do with fonts and space between lines.
    If you have a tightly built form where prompts and items are close together, they might be aligned slightly differently.
    Prompts for column headings that may be on two lines might have more space or less space between the two lines.
    In LOVs, the lines are farther apart or closer together.
    Same goes for fields where word wrap is allowed (where text in the item displays on more than one line).

  • Mailer object error message "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".

    I am trying to send an email from Lookout V6.6 using the Mailer object.  I have an email address setup through GMAIL and have verified it works.  Also, Lookout Mailer object is able to verify GMAIL server.  I get the following error message when trying to send the email: "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".  Anyone know what is causing this?

    Another method is to use a SMTP relayer, we have deployed them in the past.
    http://www.hmailserver.com/index.php?page=welcome
    Mike
    Forshock - Consult.Develop.Solve.

  • Passing values to form bean string array from dynamic added textboxes

    Hi,
    I am unable to pass values to form bean string array from a jsp in which I have incorporated dynamically adding of textboxes in javascript.
    I have given add/delete row option in the jsp. If there is single row, this is working fine. But after adding a row, I am not able to either do any validations on added textboxes or pass the values to the String array form bean variable.
    code snippet:
    var cell6 = row.insertCell(4);
    var element5 = document.createElement("input");
    element5.type = "text";
    element5.className = "formtext1";
    element5.size = "5";
    element5.value = "00.00";
    element5.name= "qty"; // this is a string array of the form bean.
    element5.onchange=function() {checkNumeric(this);};
    cell6.appendChild(element5);
    <html:text styleClass="formtext1" property="qty" value="" size="5" styleId="qty" onchange="checkNumeric(this)"/></td>
    form bean declaration
    private String[] qty; Please help.
    Edited by: j2eefresher on Jan 12, 2010 11:23 PM

    Shivanand,
    There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
    You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
    Scott

  • While Creating New Insert Form Existing Data Display from the Table

    Hi
    I am New To Sun Java Studio Creator and New to Java Also While Creating New Insert Form Existing Data Display from the Table while i am Run the Form. Can any one help me to Solve this one

    Dear Giri,
    As per your Advise, Literally I have Search the Properties for the Components to set value Null, but I am Unable to find the Value in Properties palate. I have tried in various options like
    In the Properties Palate
    TextField1_onselect use Value null
    TextField1_text I have selected use Value option and I have manually Keyed-in null;
    In the JSP Page, I have manually keyed in the null value below said
    <ui:textField binding="#{BI.textField2}" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    <ui:textField binding="#{BI.textField2.Value = null }" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    At last I am Failure. I am ignorant of it. Can you please help me on this where I have to set null value for the components? I will be very kind of you

  • What version of forms was the cutover from 6.0 to  6i.

    What version of forms was the cutover from 6.0 to 6i.
    What was the last release of 6.0 (6.0.5.34 ) ?
    First release of 6i ?
    George

    George,
    actually I don't know the exact version number, but it was Patch5 where Forms6i was branched out from. The last Forms 6.0 patch was patch 7 and had the Forms version 6.0.5.35.3 in it.
    However, patch 7 was where bot, 6i and 6.0 had the same level of functionality.
    Frank

Maybe you are looking for

  • ABAP Performance standards good piece

    ABAP Performance Standards Following are the performance standards need to be following in writing ABAP programs: <b>1. Unused/Dead code</b> Avoid leaving unused code in the program. Either comment out or delete the unused situation. Use program -->

  • MacBook is running very slowly and keeps shutting down

    My computer is painfully slow and keeps telling me that my Finder has paused. It often does this when I have multiple web pages open or when I'm using more than one application. I only use Office, Preview and Firefox or Safari - depending on which is

  • Transfer data to Application Server

    Hi All, I need to send data to Application Server. Each record should be length 504. But i am not able to send data more than 255 characters in length in a single line. Is there any way to send more than 255 characters in a single record(single line)

  • Shared Devices Don't Drop After Disconnect

    I fixed a double NAT issue by sacrificing my WNDR3700 router and turning it into nothing but an Access Point behind my Westell 9100em FiOS MOCA modem (LAN to LAN). The problem is that now, *shared devices are hanging on the the network after they dis

  • Ref: Immediate help required Approval Page problem / Task filter /

    Hi... I m facing the same problem wat Ryan has faced,.. Problem with Recruiters recieving any approval notifications for requisitions where the status change is performed by someone logged on as a Restricted Recruiter. <b>The approval notification ne