Dynamically changing form binding

Hi,
I would like to dynamically change the binding variable (bind.ref) of a subform during runtime based on a "change event" triggered by a single/multiple selection in a list box, contained in a different subform.
List box A is part of subform A, during completion of the form, the user selects one or more entries from list box A and triggers a "change event". Based on this event a table, part of subform B, is filled with entries that depend on the users selection in the list box. The rows in this table are determined by the "bind.ref" value of subform B. That means, dependent on the list box selection "bind.ref" will be assigned with a different array, that is also constructed at runtime.
Before asking for hints to a possible solution, I would like to know whether it is possible in general to change the binding of a subform dynamically (so not in the "initialize event" as in Daniel's case), based on a "change event" triggered by a list box selection?
Regards,
Franz

Hi radzmar,
Thanks for the reply, much appreciated.
I also found out more on that topic under another adobe forum post:
http://forums.adobe.com/message/3607404#3607404
So, yes it seems the binding of for instance a list box can't be modified once it's set.
I finally solved my issue by making subforms 'hidden' or 'visible' dependent on the items selected in a list box. This worked reasonably well.
Cheers,
Franz

Similar Messages

  • Dynamically change the binding of a field

    Hi,
    I've been looking all over the internet for 2 days to find the answer to my question, but I couldn't get any information on my problem. Here's what i'm trying to do :
    Based on a checkbox in my form, I want to export or I don't want to export a field to a XML document.
    My checkbox is working properly and I got the Send button with the XML working too. I only need to find a way to dynamically change the binding property of my field. I've read some informations with the ".bind.match", but I can't seem to make it work.
    I'm using Windows XP, LiveCycle Designer ES2 v.9.0 and I have to run the form in Reader 8.0.
    Thanks alot for your help, it's greatly appreciated.
    Jonathan

    Hi,
    the binding cannot be changed at runtime.
    You can use the checkbox to delete the value of the field so the exported xml contains an empty tag.
    Or you try to delete the data node of the desired field in the data DOM (xfa.datasets).

  • Dynamically change the Binding of a view object

    I want to reuse a panel several times in my application. The VO has one bind parameter (:1). The same panel should be reused several times with different bind variables.
    I found a technical note concerning this issue called: How to Dynamically Change the binding of a View Object to a JClient Panel. This works for JDeveloper 9i but not for JDeveloper 19g. Does anybody know how to dynamically change the binding in JDeveloper 10g

    You may use bindRowSetIterator() and pass in a custom fetched ViewObject or a RowSetIterator to the iterator binding that is displayed in your panel.

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • Can you dynamically change an LOV on the parameter form based on other params?

    Can you dynamically change an LOV on the parameter form based on other parameters? For example, based on a entered purchase order number, create an LOV of the purchase order lines that belong to the entered PO #.

    Hi
    Accouding to my knoledge you can't do it.
    If you want to build lov for that particular
    value, you can do it in Forms.
    Vijay

  • Dynamically changing width of web form

    Folks,
    I'm sure someone must have come up with the same problem as me.
    We have a forms 6i system running on the intranet (IE5). The forms fill the whole of the browser window if the client PC has a resolution of 800 X 640, but for larger resolutions (like 1024 X 768), the form only occupies part of the browser window. Now, I know that this is dependent on the 'WIDTH=' and 'HEIGHT=' parameters on the formsweb.cfg file. Indeed, if I increase these values, and then run the system on PC's that have resolutions of 1024 X 768, then the forms now look OK. But of course, this now causes a problem where the PC's have lower resolutions! What I want to do, is to dynamically change the WIDTH and HEIGHT parameter values dependent on the users machine settings. I can use javascript to get the users' PC details - no problem. But when I try to code this into the BASEJINI.HTM file, then I cannot run the system at all. I don't think I can use javascript directly in the FORMSWEB.CFG file, as it isn't a 'html' file.
    Has anyone else had this problem ? - you must have if you develop forms on the web with different resolutions settings. And how did you guys get around it?
    Please help!
    Harry
    null

    thanx for help, Samir! what I want exactly is: vary the width of controls on the screen. for example, if I have two buttons named "assignment" and "help", I want the width of the buttons to be different (and be proportionate to) as per the length of the caption. what kind of JavaScript code shoud I write to achive this? Pls help out... thanks,Girish

  • Dynamically changing UI element 's binding

    Hi Frnds,
    how can we change a binding of a UI element at runtime. I guess method is REPLACE_PROPERTY_BINDING of CL_WD_UIELEMENT. Does anyone have any example for this..
    Thanks
    Anuj

    Hi Anuj,
    the method REPLACE_PROPERTY_BINDING has 4 parameters ie 3 Importing and 1 Returning.
       OLD_BINDING : Pass the current binding information. This information you will get from the wizard ie Elem_****
       PATH : Just pass the attrubute path for which element you want to get it. this also can get through wizard. Here access the new context element.
       BINDING_TYPE: CO_ATTRIBUTE_BINDING( Attribute Binding),
                                CO_NODE_BINDING(Node Binding)
                                CO_MULTI_ATTRIBUTE_BINDING(Multiple Attribute Binding)
                                CO_MULTI_NODERANGE_BINDING(Multiple Node Range Binding)
    Warm Regards,
    Vijay

  • How can you update the content of a textfield in a dynamic xml form from MSAccess and VBA

    I am trying to use the code below to update a field in a dynamic xml form created by Livecycle.
    I can read the field content but cannot change it.
    What am I missing?
    Thanks
    R
    Sub test()
    Dim oPDF As AcroPDDoc
    Dim FileDestName As String
    Dim jso As Object
    Dim ofld As Object
        FileSrcName = "C:\Documents and Settings\My Documents\ADOBE Forms\NoVB.pdf"
        Set oPDF = CreateObject("AcroExch.PDDoc")
        Set jso = oPDF.GetJSObject
        Set ofld = jso.getfield("form1.TopForm.Header.Subform1.Contact")
        Debug.Print ofld.Value
         ofld.Value = "HHH"
        Debug.Print ofld.Value
    oPDF.Save PSsavefull, FileSrcName
    oPDF.Close
    Set jso = Nothing
    Set oPDF = Nothing
    End Sub

    You need to research the difference between an AcroForm and an XFA form.  You're trying to access a "Field" object, which is an AcroForm object.  An XFA form does not have fields, it has nodes.  The JavaScript you are using is specific to AcroForms and you are working with an XFA form.

  • How to dynamically change the text of a TextObject with embedded DataField?

    Hi
    I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
    Text1 => "Contact Name: {Contact.Name}"
    and I'd like to change it to anything else like:
    Text1 => "Nom du Contact: {Contact.Name}"
    Half of my TextObject is static text while second part comes from the dataset.
    (of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
    If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
    Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
    Anyone knows how to deal with that ?

    Only way I can think of doing this:
    1) Create a formula (call it lang) and enter the string "Contact Name" in it
    2) Place the  {Contact.Name} field next to the string
    3) So now you have:
    ContactName:  {Contact.Name}
    4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)...

  • Dynamically changing internal table in 'gui_download'

    Hi Experts,
                     i have to download 4 internal tables, each with different structures, to the presentation server using 'gui_download', based on which radio-button is selected in the selection screen. I am hoping to use a single 'form' and 4 'perform' calls. how can I dynamically change the tables in the 'gui_download' function modules.
    plz help.....................

    Hi ,
    Build the field catalog dynamically based on the internal table structure based on the radio button selected.Use the dynamic internal table generated from the filedcatalog and use in GUI_DOWNLOAD.
    See the below code:
    *& Report  ZRAJESH02
    REPORT  zrajesh02.
    Dynamic internal table
    TYPE-POOLS: slis.
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                  <dyn_wa>.
    DATA: alv_fldcat TYPE slis_t_fieldcat_alv,
          it_fldcat TYPE lvc_t_fcat.
    DATA: lv_monate TYPE f,
          lv_months TYPE i,
          lv_date TYPE sy-datum,
          p_check1 type n value '1'.
    lv_date = sy-datum + 360.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_check TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis   = lv_date
          i_datum_von   = sy-datum
          i_kz_incl_bis = ' '
        IMPORTING
          e_monate      = lv_monate.
      lv_months = lv_monate.
      PERFORM f_fcat USING 'AUFNR' 'CHAR' '12'.
      PERFORM f_fcat USING 'POSNR' 'CHAR' '06'.
      while p_check1 LE p_check.
      PERFORM f_fcat USING p_check1 'CHAR' '1'.
      p_check1 = p_check1 + 1.
      endwhile.
      PERFORM build_dyn_itab.
      LOOP AT <dyn_table> INTO <dyn_wa>.
        WRITE:/ <dyn_wa>.
      ENDLOOP.
    FORM f_fcat USING fieldname dattyp length.
      DATA:wa_it_fldcat TYPE lvc_s_fcat.
      CLEAR wa_it_fldcat.
      wa_it_fldcat-fieldname = fieldname.
      wa_it_fldcat-datatype = dattyp.
      wa_it_fldcat-intlen = length.
      APPEND wa_it_fldcat TO it_fldcat .
    ENDFORM.                    "f_fcat
    *&      Form  build_dyn_itab
          text
    FORM build_dyn_itab.
      DATA: new_table TYPE REF TO data,
      new_line TYPE REF TO data.
    wa_it_fldcat TYPE lvc_s_fcat.
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = 'AUFNR'.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 12.
    APPEND wa_it_fldcat TO it_fldcat .
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = 'POSNR'.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 6.
    APPEND wa_it_fldcat TO it_fldcat .
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fldcat
        IMPORTING
          ep_table        = new_table.
      ASSIGN new_table->* TO <dyn_table>.
    Create dynamic work area and assign to FS
      CREATE DATA new_line LIKE LINE OF <dyn_table>.
      ASSIGN new_line->* TO <dyn_wa>.
    ENDFORM.                    "build_dyn_itab
    Thanks,
    Rajesh.

  • Dynamically Changing Labels for Multi Row Block Buttons

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    On my local: Windows 7 OS
    I am having a difficult time in doing the following in forms, and not sure if it can be done?
    I have a multi row block,based on DB table, which displays filename and another column from the table.
    It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
    a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
    b) View File (Display the file from file system)
    c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
    I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
    I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
    Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
    Any expert advice is highly appreciated.
    Thanks in advance for your time:
    Libran_Girl
    Edited by: libran on Aug 30, 2011 8:04 AM
    Edited by: libran on Aug 30, 2011 8:05 AM

    <p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
    Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
    </p>
    This is the code you have to put one triggers of your based block:
    When-New-Record-Instance trigger: (based on the EMP table)
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;When-Create-Record trigger:
    declare
         LN$N    pls_integer ;
         LN$Rec  pls_integer := :system.cursor_record ;
         LC$C    Varchar2(15) ;
    Begin     
         if get_block_property('EMP',TOP_RECORD) > 1 Then
              LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
         else
              LN$N := :system.cursor_record ;
         end if;
         If LN$N > 0 Then
              Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
         End if ;
    end;Post-Query trigger:
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
    Enjoy it,
    Francois

  • Actionscript & changing form field values

    I am building a form using flash forms. I have a particular
    field that by default the value is 0.00. I want to make an onchange
    actionscript that will dynamically change the form field value to
    0.00 if the end user deletes the value out of the field and leaves
    it blank.
    Please be gentle...I know my actionscript'ing is poor (and
    probably looks a wee bit more like JS than AS) LOL
    <cfsavecontent variable="zero_myfield>
    if (myfield.text == '') {
    myform.myfield.text == "0.00";
    </cfsavecontent>
    <cfinput type="text" name="myfield"
    onchange="zero_myfield">
    I know you can manipulate the value of a form field easily
    with javascript, but how to do the same thing with actionscript?
    Any pointers would be appreciated!
    Thanks!!

    ROFL, I figured as much...like I said, my AS is *very*
    rudimentary right now heheh
    I picked up an AS book yesterday evening to hopefully help me
    out some, I know not all AS is available to use in ColdFusion flash
    forms, but it will give me a good reference I hope.
    I'll try my hand at the listener and see what I can come up
    with. Thanks for the pointer!! :)

  • Adobe Livecycle Designer ES 2 - Adobe Dynamic XML Forms?

    How can you convert a dynamic XML form design in a static PDF Form design? I tried to save a dynamic XML Form as a static PDF Form, and then tried to preview it in Designer but the layout change scripts were working which should work only for dynamic xml forms and not for the static pdf forms. Please suggest another way to do it. Thanks in advance.

    You use Master Pages to set layout that you want to use on multiple pages.
    Design what you want in a Master Page and then assign it to the pages you want in Object>Pagination>Place: and choose On Page> whatever you called your Master Page.

  • Adobe Reader XI - dynamic PDF Form and the E-Mail Dialog

    Hi Community,
    I have a dynamic PDF Form and we use the E-Mail function to save the XML-Data to local harddrive. That works until Adobe Acrobat Reader 10.1.2. But with the Adobe Reader XI (11.0.4) the E-Mail Dialog has changed so I am One is forced to send the XML file with Outlook or the internal mailer and has no option to save the file locally.
    Does anyone know a workaround or something similar. The Live Cycle server with PDF extension is too expensive for our small project.
    E-Mail Dialog (10.1.2)
    If you choose Internet-E-Mail you get a Save-As File Dialog
    E-Mail Dialog (11.0.4)
    There is no way to save the XML-Data to local Harddrive.

    Hi Pat,
    Are you using Adobe Reader XI? And not Acrobat. It does not ask me to save the form if there are unsaved changes.
    I have used previous versions of reader for saving this form data and it did allow me to save it with ctrl+s. And those versions did prompt me to save the changes before closing.
    I guess I should not have updated the reader.

  • Hyperlink in a dynamic PDF form

    Hi guys,
    I've created a dynamic PDF form in LiveCycle designer, and I want to insert hyperlink in to this form - but I don't know how to do it. My Link Tool in Adobe Acrobat is inactive.
    Any advice?
    Cheers
    Marian

    Thanks,
    I just needed to change text field to rich text and now I'm able to insert an URL. But now another problem pops up - I'd like to open directly from this PDF a file stored on the DFS file sharing server. My links open in browser - how can I fix this please?
    Marian

Maybe you are looking for

  • Will asynchronous execution be in flash?

    Hello all, I have faced with the problem: when it's needed to do large amounts of calculations flash just hangs. No difference if is it in browser or is air application - all user interface just hanging and user is watching "Program not responding".

  • Apple Mail produces illegal html

    We've had all kinds of problems with Mac-generated emails coming up blank for some recipients. Our service provider did a detailed analysis and discovered that the Apple mail application (version 2.1 - 752/752.2) generates illegal html!!!! Here is an

  • How do I launch my iPhoto photos slideshow?

    How do I launch my iPhoto photos slideshow?

  • Help with some Flash banners

    Hi, i need some help this week putting some Flash banners together. Anyone available to help out? I am based in London UK. Please DM me. Cheers!

  • Activating BC Datasource

    Hello BW Experts, steps for activating the BC datasource 1) activate the Datasource1 in rsa5 r/3 system 2) maintain and activate th datasource1 in rsa6 r/3 system 3) replicate the datasource1 in bw system. please let me know if i am missing any steps