Dynamic Forms (Data Dictionary) using CFForm (??)

Hi,
The basic plan is to build the forms in my application
dynamically using a data dictionary rather than basing them upon
static tables and having statically coded forms to match. This
would allow me to offer the ability for an administrator to add new
fields if required (client 'requirements' are hard to pin down and
may therefore change).
I'm developing using CF8 (hoping it will be released real
soon..;-).). Application will be structured using Fusebox 5.
I've tried building up the form elements (<cfinput>
& etc) off in CFC, returning the layout result code in a
content variable, and its not working.
I have some other approaches to try, but this one would be
preferable.
Has anyone else tried this - and do you have any advice to
offer (or am I just crazy trying it because there is no way its
going to work ?)
Thanks
Bryn50

This approach works well using standard html forms and html
form controls such as <input> and <select> etc.
I'm wanting to use CFFORM (for the first time in a long time)
for the functionality on offer (such as flash forms).
As I saw elsewhere, I have not used this in a verrry long
time because generally I've found it inflexible and the validation
on offer is a tiny subset of what is generally needed. I'm kinda
hoping to be able to overcome that this time around by adding my
own javascript validation when necessary.
I have some ideas for approaches that might work, but they
don't seem like very good ones to me:
1/. might be to try using standard html form controls inside
a cfform. Can I still have it display using flash ?
2/. might be to have all of the logic that selects the
appropriate cfform control for a given field in the same file as
the cfform, however that seems so unelegant and also it defies the
MVC/fusebox 5 approach I'm also wanting to use.
Thanks for your help...
Cheers,

Similar Messages

  • How I can create dynamically-formed requests or use native SQL in EJB?

    Hi all.
    I'm working around modify an example from NetWeaver Developer Studio (CarRental). I want to get ordered data from table and allow users to specify the ordering field, not in the code. EJB QL doesn't support dynamically-formed queries like "select object(b) from QuickBooking b where b.status like ?1 order by b.<b>?2</b>" so i can't passing field name as parameter into query. Creating a sorting method for every field is not good solution because I need a dynamically-formed requests.
    I think using native SQL will help but I don't know how I can use SQL in EJB.
    Thanks,
    Lev

    import javax.persistence.EntityManager;within class, place
    protected EntityManager  entityManager;of course make it public, private, whatever you need.
    Then, in your method
    entityManager.createNativeQuery(....);R. Grimes

  • Creating dynamic form data with SetValue QPAC

    I'm creating form data in a workflow process, and using it to populate a dynamic XDP with a subform.  In my test form, the subform is named "Item", with a text field named "ItemData".  Initially, I can create the form field via the SetValue QPAC and using these parameters;
    location: /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData
    value: "first"
    However, I need to add multiple instances of the Item subform.  For example, if I fill out the test form with 3 items and export the data to XML, the data structure comes out like this:
    first
    second
    third
    So, the question is, how do I use the SetValue QPAC to create multiple instances of the items? I've tried various locations;
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item.x/ItemData
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item[x]/ItemData
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData.x
    but none of them seem to work.  I know I'm probably just missing something simple.  Anybody care to fill me in on the obvious?

    Hi Clifton
    Looking back on this thread, I think you're saying that the data is eventually going to come from a MySQL database.
    In that case, our SQLPlus QPAC will do the job perfectly.
    You just specify the query, specify the repeating element:
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item
    and then map columns in the result set to sub-element of the Item.
    eg mycolumn -> ItemData
    The SQLPlus qpac will create all the repeating items for you.
    Does this work for you?
    If not, please specify what you'd like to see.
    A couple of options are:
    - A setValue qpac that correctly inserts for expressions like: process_data/form/form-data/data/xdp/datasets/data/fields/Item[2] (probably difficult to do)
    - An InsertSequence qpac that takes a repeating element and a count as an input, and creates that many repeating elements. You could then refer to them using the regular SetValue qpac. (Probably easier to do.)
    - Something else. Go wild :-)
    Howard

  • Email Dynamic Form as Attachment using class cl_bcs?

    Hi Experts
    I really hope that you can help me.
    I have a dynamic form embedded in my view and I need to email this form as an attachment to a list of participants.
    I already use the class cl_bcs for sending email, but how do I retrieve the form parameters (on button click within WD ABAP) and then convert them to the correct format so that they can be included in the cl_bcs class for sending?
    Thanks in advance
    I'll award points to helpful answers.
    Anton Kruse

    HI,
    To send mail with PDF attachement,
    U have to specify the emporting and exporting parameters for the Interactive Form in the SFP transaction.
    Then add the below coding,
    *Send mail in PDF format
    Funtion module to get the generated FM name
          TRY.
              CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
                EXPORTING
                  i_name     = lc_formname
                IMPORTING
                  e_funcname = lv_fmname.
            CATCH cx_fp_api_repository.                     "#EC NO_HANDLER
            CATCH cx_fp_api_usage.                          "#EC NO_HANDLER
            CATCH cx_fp_api_internal.                       "#EC NO_HANDLER
          ENDTRY.
          ls_param-nodialog = 'X'." suppress printer dialog popup
          ls_param-getpdf   = 'X'." launch print preview
          CALL FUNCTION 'FP_JOB_OPEN'
            CHANGING
              ie_outputparams = ls_param
            EXCEPTIONS
              cancel          = 1
              usage_error     = 2
              system_error    = 3
              internal_error  = 4
              OTHERS          = 5.
          IF sy-subrc <> 0.
    Do Nothing
          ENDIF.
          ls_fp_doc-langu    = lc_sprsl.
          ls_fp_doc-country  = lc_country.
          ls_fp_doc-fillable = 'X'.
    Mail Format /1BCDWB/SM00000091
          CALL FUNCTION lv_fmname
            EXPORTING
              /1bcdwb/docparams  = ls_fp_doc
              empno              = ls_emp_det-empno
              empname            = ls_emp_det-empname
              state              = ls_emp_det-state
              location           = ls_emp_det-location
              organisation       = ls_emp_det-organisation
              position           = ls_emp_det-position
              mailid             = ls_emp_det-mailid
              actual_date        = ls_emp_det-actual_date
              likely_date        = ls_emp_det-likely_date
              resig_date         = ls_emp_det-resig_date
              generic_det        = lt_generic
              bond_det           = lt_bond
            IMPORTING
              /1bcdwb/formoutput = ls_formout
            EXCEPTIONS
              usage_error        = 1
              system_error       = 2
              internal_error     = 3
              OTHERS             = 4.
          IF sy-subrc <> 0.
    *do nothing.
          ENDIF.
          CALL FUNCTION 'FP_JOB_CLOSE'
            EXCEPTIONS
              usage_error    = 1
              system_error   = 2
              internal_error = 3
              OTHERS         = 4.
          IF sy-subrc <> 0.
    Do Nothing
          ENDIF.
    *Function call to get the xstring value.
          CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
            EXPORTING
              buffer     = ls_formout-pdf
            TABLES
              binary_tab = lt_att_content_hex."PDF file from function module
          lv_bodytext_row-line = lc_subject.
          APPEND lv_bodytext_row TO lt_bodytext.
          APPEND ' ' TO lt_bodytext.
          lv_bodytext_row-line = text-001.
          APPEND lv_bodytext_row TO lt_bodytext.
          APPEND ' ' TO lt_bodytext.
          DESCRIBE TABLE lt_bodytext LINES lv_num_rows.
          lv_num_rows = lv_num_rows * 255.
          MOVE lv_num_rows TO lv_textlength.
          TRY.
              lv_attdoctype = lc_pdf.
              lv_atttitle = text-000.
              lc_document = cl_document_bcs=>create_document(
              i_type = lc_raw
              i_text = lt_bodytext
              i_length = lv_textlength
              i_subject = lv_subject ).
              lc_document->add_attachment( EXPORTING
              i_attachment_type     = lv_attdoctype
              i_attachment_subject  = lv_atttitle
              i_attachment_language = sy-langu
              i_att_content_hex     = lt_att_content_hex ). This will attach ur PDF to mail
    Create persistent send request
              lv_send_request = cl_bcs=>create_persistent( ).
    Add document to send request
              lv_send_request->set_document( lc_document ).
              lv_sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
              CALL METHOD lv_send_request->set_sender
                EXPORTING
                  i_sender = lv_sender.
              CLEAR : ls_smtp_addr.
         READ TABLE lt_mailid INTO ls_mailid WITH KEY pernr = ls_0001-pernr.
              IF sy-subrc = 0.
                ls_smtp_addr = ls_mailid-usrid_long.
              ENDIF.
    Create recipient.
             lv_recipient    = cl_cam_address_bcs=>create_internet_address(
                                                          ls_smtp_addr ).
    Add recipient with its respective attributes to send request
              lv_send_request->add_recipient( EXPORTING
                            i_recipient = lv_recipient
    Set send immediately
              lv_send_request->set_send_immediately( 'X' ).
    Send document
              lv_send_request->send( ).
            CATCH cx_root INTO lv_oref.                     "#EC NO_HANDLER
          ENDTRY.
    Hope this ll help u!!
    Thanks,
    Divya.S

  • Dynamic Form Data Duplication

    I'm working on my first dynamic form, and I'm having an issue where my dynamic subforms share the same data, so editing one subform updates all other subforms of the same type. The form is a tshirt order sheet, so, for example, there'll be a line for a specific brand of shirt, plus sizes. When another line is added, it'll duplicate all the info from the first line, and any changes made to the second line will be immediately mirrored in the first line. I have the fields bound to an XML schema I wrote, so I'm not sure if that may be causing the problem.

    Hi,
    You have not included the XML schema. However the issue is that the objects in the repeating row are bound to the schema, if this is absent or if the schema only contains one node, then I am sure that all repeated instances of the row will display the same data.
    The issue is where is the data coming from? Is it from a database or is the user entering it. If the user is entering it then I would not bind those fields to a schema. Set the binding to Name/Normal.
    Niall

  • Clear waveform chart history if dynamic 1D data is used

    I am new to Labview and am using a Waveform Chart.  To clear this I need to supply an empty array.  I have done this with scalar inputs, but in this present case, the input to the chart is a bundle of 1-D array of dynamic data. I cannot figure out how to create a suitable empty array of type 1D array of dynamic data to initialize the plot (wire to the History).
    It seems like there should be a better (easier) way of clearing the plot...
    Thanks for any ideas.
    Solved!
    Go to Solution.

    Hi rockybooth,
    right click on the connector to the history property and select "create constant". You should get what you need.
    Hope it helps.
    Mike

  • Dynamic form data question (PHP, MySql)

    I am trying to create a form with two dynamic lists. I would
    like the second (below the first)
    list to be dependent upon the value selected in the first
    list, e.g.
    Enter category:
    Enter item:
    I want my SQL statement for the dynamic list for "item" to be
    dependent upon
    what was chosen for "category", e.g.
    select names from items where items.category_id=$category;
    It seems like DW supports this via variables, but although
    form variable are
    passed to the "action" php file, how would I reference the
    category in the
    recordset (SQL statement) for the items list?
    Is this possible?
    Thanks,
    Mitch

    LiveFreeOrDie wrote:
    > I am trying to create a form with two dynamic lists. I
    would like the second
    > (below the first)
    > list to be dependent upon the value selected in the
    first list, e.g.
    >
    > Enter category:
    > Enter item:
    >
    > I want my SQL statement for the dynamic list for "item"
    to be dependent upon
    > what was chosen for "category", e.g.
    PHP is a server side language, which means that all the PHP
    code and SQL
    is processed on the server before being sent to the browser.
    As a
    result, it's impossible to change the SQL query on the basis
    of what's
    selected in the browser without making another request to the
    server.
    The Adobe Dreamweaver Developer's Toolbox (ADDT) has a
    Dependent
    Drop-down Wizard that automates the coding process for you.
    Otherwise,
    you need to code it yourself by putting the drop-down in a
    form of its
    own. When the user submits the form, use the value from the
    drop-down to
    create the appropriate SQL.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Dynamically change data model using xml

    Hi there,
    I need to exclude certain type of invoices from several reports. I also need to recalculate invoice amount if invoice is of a particular type.
    Is there a way to do it using xml report definition instead of directly modifing report?
    If you can point me to some examples, it will be greatly appreciated.
    Thanks!

    Hi there,
    I need to exclude certain type of invoices from several reports. I also need to recalculate invoice amount if invoice is of a particular type.
    Is there a way to do it using xml report definition instead of directly modifing report?
    If you can point me to some examples, it will be greatly appreciated.
    Thanks!

  • LC/Acro 8.0 dynamic form resetting entered data

    I have a dynamic form originally created using LC 7.1. The form was Saved As... using LC 8.0. The form has a table (in the Body Page) which adds rows via an addInstance button. The rows expand to fit the text. Two master pages are used as the second is a continuation sheet.
    Using Acro Pro 8, I distributed it so that it could be completed and saved by a user with just Adobe Reader (7.08). Whilst completing the form, adding rows, entering data and regularly saving, I reached the bottom of the page and added an additional row (to spill over onto the continuation sheet), however all the data disappeared from the completed fields (all the fields except check boxes). The same happens when the table row expands to accommodate the text, thereby spilling over onto the continuation sheet (2nd master page). It also looks as though the RemoveInstance manager resets the form data when I delete a row and there is no script telling it to do this.
    Even purging the cache, closing down, and reopening the Saved form doesn't recover the lost data!
    So am I misunderstanding the licence limitations of this upgrade or is it a bug with the InstanceManager? If you are supposed to be able to complete/edit and save the form, what am I doing wrong?
    Any help, greatly appreciated.

    Where is some documentation on this bug? I am having the same problem (disappearing data EXCEPT radio buttons and check boxes). I do not manipulate instances in my form, but I do update the layout (it is dynamic) and allow users to save data.
    I suspect that my end users are using earlier versions of Reader, but would like some documentation on the subject, as I do not have access to the users' computers. I can't recreate because I have Reader 8.

  • Use Adobe Reader to Save Form Data

    I use Acrobat 8 Professional to create several forms and enabled usage rights in Adobe Reader so that my users can save the form data locally using Adobe Reader 7 or higher. My questions are: (1.)Is there a limit to saving the form data? For example, the form can only be save 500 times per form or is it unlimited. (2.)If there is a limit to saving the form like 500 times, can the same form be recreated and the limit of 500 starts all over again? (3.)Do I need to purchase a license to save these form data? (4.)How many forms can have enable usage rights in Adobe Reader per Adobe Acrobat professional? The reason why i'm asking these questions is because I want to be in compliance with the Adobe license. My users don't have Adobe Acrobat Professional, but would like to use Adobe Reader to save the form data.

    >(1.)Is there a limit to saving the form data?
    It is my understanding that you can harvest data from a form 500 times whether that be from one user of 500 users.
    >(2.)If there is a limit to saving the form like 500 times, can the same form be recreated and the limit of 500 starts all over again
    You'd probably be walking on thin ice by trying that. Could be a loophole but maybe not.
    >(3.)Do I need to purchase a license to save these form data?
    Not if you stay within the limit that is stated in the EULA.
    >(4.)How many forms can have enable usage rights in Adobe Reader per Adobe Acrobat professional?
    Different forms? As far as I know there is no limit to the amount of different forms you use.
    In my opinion, if you think you are going to go anywhere near the limitations of the EULA, consult with your attorney before proceeding. The form enabling function was never intended for large business use. Adobe has another, more costly, solution for that.

  • Dynamic Forms with Subforms and Text Fields

    I've been reading all of the messages relating to subforms and dynamic forms and have used many of the suggestions, but haven't found anything that addresses the problem I am having. I'm using Designer 7.0. I've saved my form as a dynamic form, I've set my text fields for multiple lines and expand to fit. My problem is that as soon as I set the parent subform to Flow Content, everything moves to the left margin. I've tried grouping items together within a subform in hopes that the items will maintain their position on the page, but everything always moves to the left margin. I'm creating a legal form that needs to have text and a text field centered at the top of the page. Below that to the left is a text field that needs to be able to expand with two text fields to the right of it. Below that are additional text fields that need to expand as needed.
    Am "stacking" my subforms incorrectly and setting the wrong subform to Flow Content? Or, can you now lock a field to a specific position? Any help would be greatly appreciated.

    Unfortunately, I hadn't understood that you needed the fields to expand in height and everything below them to move down the page. In that case, you'll need to use flowed subforms.
    Having all objects move to the left side of the page is expected when setting a subform to flowed. That's because the flow is top-down, left-right.
    One thing you could try is making the text field that needs to be centered exactly as wide as the flowed subform and then setting its left- and right-hand margins to an equal number. This would ensure an equal amount of space on the left- and right-hand sides and because the field would be as wide as its flowed container (subform), entering multiple lines of text would result in everything below moving down.
    I've attached a sample form where the page subform has been set to flowed, the text field at the top is a multi-line/height-expandable text field with its width set to the page width and its left- and right-hand margins both set to 2in and the button and check box objects are pushed below the text field.
    When text is entered into the text field, it expands in height and causes the button and check box to move down.
    To achieve other horizontal and vertical positioning/offsets, you could play with the margins of all the fields that need this.
    Stefan
    Adobe Systems

  • Modify form data programatically

    How can I modify my form data programatically using Workflow? I know that I can set the values in individual XML nodes, but how do I add and remove the nodes themselves? For example, say I want to do a database lookup and add XML nodes for each record returned before rendering the form with a Render QPAC. Thanks.
    Jared

    Hi Jared
    Using the Avoka SQLPlus QPAC, you can designate a repeating node in an exising XML or Form object, and specify that the rows from the SQL result set should be inserted at that level.
    You can download SQLPlus here: http://www.avoka.com/avoka/qpac_library.shtml
    Please see the documentation with the QPAC, and contact support-at-avoka.com if you have any difficulties.
    If you need to merge some other data (i.e. not SQL result set) into a form, then you'll need a different QPAC. Let me know on this forum if this is the case.
    Regards,
    Howard
    http://www.avoka.com

  • How to Create Dynamic form using table data

    Dear All,
    I have one Table called PRODUCT_MASTER where product details are stored. Say product A,B,C,D are stored in the table. Another table called SUB_PRODUCT_MASTER, which contains sub product details.Say A1,A1,B1,B2, B3,C1, C2, C3, D1,D2,D3.
    Now, I want to create a dynamic form based on product,sub product. for a whole month. For better under standing here is the format.
    PRODUCT A B C D
    SUB_PROD A1 A2 B1 B2 B3 C1 C2 C3 D1 D2 D3
    Days
    1 x x x x x x x x
    2
    3
    4
    5
    6
    7
    Now whenever I add one row in the PRODUCT)MASTER table and SUB_PRODUCT_MASTER table, Form should add one column in the form automatically. e.g. If I add Product E with two Sub product E1 and E2 then form should add ptoduct E column in the form with sub products E1 and E2 as per above format. Here days are fixed to 31. This forms should accept product wise daily despatch entry. For
    storing despatch entry another table is created.
    Please help to create this type od forms.

    You want I believe to create Croos-Table(Matrix) form. Visit Cross-table (matrix) forms layout and add "Please Send me too".

  • My dynamic form - issue with saving data (urgent-i would greatly appreciate any help)

    Hello,
    I have some problems with this dynamic form (created in livecycle)  http://www.pathology.ubc.ca/Academic_Activity_Data_Form_Jan_4_2013.pdf .  It doesn't save data unless I add a' new row' to any of these tables.   There are a few text fileds and if I type anything in there data won't be saved unless I trigger it by adding randomly a table row.  This is big problem as this form will be used for updates and if I want to change any of my entered records I will always have to remember to 'add a new row' otherwise just adding/changing text won't be saved. This might sound confusing but you will understanding what is going on if you type in your name and save the form and then type in your name, add a table row and save the form (first case won't be saved second will).
    I would greatly appreciate any help.
    Debbie

    Hi Marco Russo ,
    = CALCULATE (
        SUM ( [measure] ),
        PARALLELPERIOD (
            SAMEPERIODLASTYEAR ( DateTime[DateKey] ),
            0,
            QUARTER
    I have used the above DAX function it is working fine and i have applied same for Year , Quarter and Month 
    But when i remove month filters (Slicer) and Year filters in Power view report
     it is showing total Year values for Year and Quarter values
    for Quarter etc..
    Like below i am getting 
    Last Yr Month Amt   Current Yr Month Amt   Last Yr Qtr Amt   Current Yr Qtr  Amt    Last Yr     Current Yr
     10000                     30000                              10000                30000
                        30000       30000
    but i need Blanks in report if i am not selecting any filters
    thanks,
    Sreeni

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

Maybe you are looking for

  • What's the difference?

    Can someone please explain to me what exactly photoshop extended is and why it's different from just regular photoshop?

  • Error in Planning services

    Hi when i am trying to accesss the forecast data of campaign related one planning profile i am getting this error. Error in planning services Error messages - count 0001: RFC error: Call of a method or kernel Method that has not been implemented. Ple

  • Function module to read all the views of material data

    Dear all ,        Is there any function module to read all the views of material data ?        Like we have MATERIAL_MAINTAIN_DARK for updating all the views of material data , I need a function module to read all the views of material master. Thanks

  • Calling PASCAL library

    Hi, I seems to can't access to this library file, anyone can help me with this? I'm a Labview user, I try to use the call library vi but the list of functions just don't come out. SL Ong Websuite Solutions Attachments: IBS_PD.zip ‏13 KB

  • Get iPhone installed apps list

    Hi, I need a way to get the list of all the Apps installed on the device. Can you help me? Thank you all Brandon