Variables for Field Names.

This may be a silly one for ya but I am having a brain fart
now.
I am doing a dynamic form where the form questions are
created fro a database.
The different field names are dynamic variables generated via
itererations (++) from the database table.
The problem is that when I submit the form I need the field
names as the insert or update value to populate the values
statement in the query. I am having a problem locking down the
actual values to use for the insert or update statement.
I will need to use a loop to iterate through the variables.
Look at the code form the form.
Thanks in advance.
Gene

Too much code for me to analyze.
But see if any of these development tricks lead the way for
you.
On your action page:
<cfdump var="#form#>
<cfoutput>
<cfloop collection="#form#" item="field">
#field# = #form[field]#<br>
</cfloop>
<cfoutput>
<cfoutput>
#form.fieldNames#<br>
<cfloop list="#form.fieldNames#" index="field">
#field# = #form[field]#<br>
</cfloop>
<cfoutput>

Similar Messages

  • Substitution Variable for Field Name - Use in LOV Defintion

    Hi,
    I need to build an application with a lrage number of fields based on an LOV (Select List). All the LOVs will be sourced from a single table:
    LOOKUP_TYPE VARCHAR2(30)
    LOOKUP_CODE VARCHAR2(30)
    MEANING VARCHAR2(100)
    Each field will therefore need a simple LOV of:
    select lookup_code, meaning
    from
    app_lookups
    where
    lookup_type = 'LOOKUP_TYPE_NAME'
    order by 2Not complicated but it will take a long time due to the number of fields (across many pages).
    I would like to be able to have the same code for all fields. Something like:
    select lookup_code, meaning
    from
    app_lookups
    where
    lookup_type = V('THIS_FIELDS_NAME')
    order by 2With this code I could simply copy fields around and rename them - the LOVs would automatiically select the right values by using the Field Name to find the correct codes.
    A long shot - but worth asking.
    Any thoughts?
    Thanks,
    Martin

    Hi Andy,
    Yes I know about Shared Component LOVs but this does not address my issue. I am also not restricting based on a page item value. I just want to restrict dynamically based on the field name.
    On a page I will have at least 30 items, each with their own LOV. I can define an LOV for each item (either directly or though shared components) but each needs to be individually coded (where lookup_type = 'XXXX' with XXXX being different for every field).
    If possible I would like to dynamically use the field name to select the group of lookup codes that I want - all fields could then have the same code (or potentially the same Shared Component LOV).
    Not a major issue, but it would make my life a lot easier!!
    Martin

  • Init Select for Field name

    Hi all ,
    While i am trying to run initdelta i am getting error message "init select for field name Currently running in  request REQ_jijhoieoililh" how to resolve.
    i am unable to fill setup tables for plant maintinence datasource 2li_17_I3HDR i am not finding option in SBIW.
    Also i am getting Error "No Successful initialisation of the delta update took place " how to do that i did in
    infopackage but but still getting this error.
    thanks in advance--

    Hello Srinivas,
    in the transaction LBWE, in the plant maintainance applcation, in the update column for MC17I30HDR, make it active.
    then proceed with filling the setup tables.
    also
    take a look Roberto's weblog
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    Hope this helps..
    thanks,

  • System variable for Warehouse name in Pick list PLD

    Hi Experts,
    My customer would like to show the Warehouse name on the Pick List print layout.
    What is the System Variable to display the Warehouse name on the Pick List?. Iu2019m working with Sap Business One 2007A.. Where can I find the system variables for Chile localization. Thanks Very Much
    Claudia

    Hi Claudio,
    Try this,
    ->> Open the Pick List(System) PLD and Save as the New PLD.
    ->> Open the NEw PLD and Create 1 Database Field(for WareHouse Name) in Repetetive Area.
    Table -> OWHS - WareHouse
    Column -> WhsName - WareHouse Name
    Save as and Run the Print Preview.
    IF will not print the WareHouse Name in Print.
    Do this in PLD.
    ->> Open your PLD.
    --> Ralate to WareHouse Code Field ID in WareHouse Name Field at Content Tab on Properties Window.
    Regards,
    Madhan.

  • Help Text for Field Name.....

    Hi Experts,
    In ALV Report there is Feild names like Order No., Qty, etc.
    When the user moves the cursor to the Feild Name i.e. Qty, it should show help text "This Qty is for A-B...".
    How to bring help text for Feild name when the cursor move to feild name ?
    Pl. guide.
    Yusuf

    Hi Shiva,
    There is no field TOLLTIP in SLIS_FIELDCAT_ALV.
    My sintex is :
      w_fcat-col_pos     = 9.
      w_fcat-fieldname = 'FACTOR'.
      w_fcat-seltext_l = 'Stock Value (55 %)'.
      w_fcat-outputlen = 18.
      w_fcat-do_sum = 'X'.
      APPEND w_fcat.
      CLEAR w_fcat.
    Is there any other way becaz there is no field like tooltip?
    Yusuf

  • Add PROPERTY to Fields for "Field Name"

    I want to have each field with a unique name when it arrives in the Responses report. Then, when I export to csv or Excel, I can manage the data knowing each column has a well-formatted and unique name. This is unique from the field's "text".
    I read a response from Randy that one can double-click on the title cell in the responses page, and type in a new name there, which becomes essentially the field name. This does not replace the field's text.
    However with more than 200 fields in my form, this would be a tedious process. Also, naming fields should be part of the form design process, not in the responses side.
    I recommend that the field definition pop-up, when designing a form, should include in the field's properties a FIELD_NAME. The help should make clear the character set allowed in field names (or perhaps this could be part of the user's options, such as prohibiting backslash, etc.)
    Thank you for a growing tool!

    Hi,
    Thanks for the feedback. You should post this feature idea to the Ideas section:
    http://forums.adobe.com/community/formscentral?view=idea
    We use the Ideas section to help prioritize our work.
    Regards,
    Brian

  • Which table stored  description for field name

    hi,
    for example,
    field name is  LIFNR , description (vendor number),
    which table stored this description (vendor number)  for that field name(LIFNR) ?

    1. From table DD03L, give your tablename and get all of its field names and corresponding data element names. 
    2. From table DD03T, get the description of each data element you have got in step 1. 
    3. Then Use Function Module DDIF_FIELDINFO_GET 
    DD02L : ALL SAP TABLE NAMES
    DD02T : DESCRIPTION OF TABLE NAMES
    DD03L : FIELDS IN A TABLE.
    Check the below link for more information.
    http://www.sap-img.com/abap/how-to-get-the-field-descriptions-of-a-table.htm
    Thanks,
    Balaji

  • More 30 Character for Field Names

    Hi :
    I need the setting for incremental the limit of 30 character of the field name.
    Ex: MY_DOCUMENT_IN_THE_YEAR_2000_AND_YEAR_2001 varchar (30)
    Thanks

    This can happen when the form was created by converting an HTML form to PDF. Unfortunately, there is no user interface for changing the submitName property of fields. The reason Acrobat creates such names when converting from HTML is because there are fundamental differences in behavior between HTML fields and Acrobat fields. In short, Acrobat needs to give the fields unique names.
    You can alter the submitName property of a field using JavaScript, however. For example:
    // Remove the submitName that was added
    getField("Text1").submitName = "";

  • Use of table for field names

    hi guru's
    is there any way to check the table if i am having the data elements.
    i am having some data elements or field name, i just wanted to know, what are all the table which are using this fields.
    se16 is for checking the table, but i want to check the data element or field names.
    ex: i wanted to know what are all the tables is using the BUDAT fields.

    Hi,
    Table <b>DD03L</b> can be used to find out all the tables which are using a particular field.
    Regards,
    Amit
    *Always reward points for helpful answers

  • "Find and Replace" for field names in a fillable PDF

    Is it possible to do a "Find and Replace" for the field names in a fillable PDF? For example, I have multiple fields that contain the word "Proposed Insured" as part of the field name and would like to find and replace all of them with "Owner". Is there an easy way to do this?

    Not really. Even a script can't just rename a field. It needs to create a
    new field on top of the old one, but then you lose all the associated
    settings, like validation, calculation, format, keystroke, etc.

  • Using a Variable for Table Name  with a cursor

    Hello All
    Is it possible to use a Parameter passed to a procedure as the table name
    in a cursor selection statment. I thought the below would work but I get
    a error. Does anyone have any ideas?? The Error is listed below to.
    Here's the code I just complied
    CREATE OR REPLACE PROCEDURE Dup_Add(NEWQATABLE IN VARCHAR2) IS
    CURSOR c1 IS SELECT MUNI,PROV FROM NEWQATABLE GROUP BY MUNI, PROV;
    c1rec c1%ROWTYPE;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO c1rec;
    EXIT WHEN c1%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(c1rec.MUNI);
    END LOOP;
    CLOSE c1;
    END;
    Here is the errors
    LINE/COL ERROR
    3/8 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
    3/15 PL/SQL: SQL Statement ignored
    3/38 PLS-00201: identifier 'NEWQATABLE' must be declared
    5/7 PL/SQL: Item ignored
    10/3 PL/SQL: SQL Statement ignored
    10/17 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    12/3 PL/SQL: Statement ignored
    12/24 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    Thanks
    Peter

    If you are going to have a table name or a column name as a parameter, then you have to open the cursor dynamically. The following example uses Native Dynamic SQL (NDS) to open a ref cursor dynamically. I also eliminated the group by clause, since it is intended for use with aggregate functions and you weren't using an aggregate function. Also notice that there are some other differences in terms of defining variables and fetching and so forth.
    SQL> CREATE TABLE test_table
      2  AS
      3  SELECT deptno AS muni,
      4         dname  AS prov
      5  FROM   dept
      6  /
    Table created.
    SQL> CREATE OR REPLACE PROCEDURE Dup_Add
      2    (newqatable IN VARCHAR2)
      3  IS
      4    TYPE cursor_type IS REF CURSOR;
      5    c1 cursor_type;
      6    c1muni NUMBER;
      7    c1prov VARCHAR2 (20);
      8  BEGIN
      9    OPEN c1 FOR 'SELECT muni, prov FROM ' || newqatable;
    10    LOOP
    11      FETCH c1 INTO c1muni, c1prov;
    12      EXIT WHEN c1%NOTFOUND;
    13      DBMS_OUTPUT.PUT_LINE (c1muni || ' ' || c1prov);
    14    END LOOP;
    15    CLOSE c1;
    16  END;
    17  /
    Procedure created.
    SQL> SHOW ERRORS
    No errors.
    SQL> SET SERVEROUTPUT ON
    SQL> EXECUTE dup_add ('test_table')
    10 ACCOUNTING
    20 RESEARCH
    30 SALES
    40 OPERATIONS
    PL/SQL procedure successfully completed.

  • Search help exit for field name: BANKL (bank number)

    Is there any search exit that can be used on field BANKL to display only some bank based on user defined criteria?
    Regards

    we can create the search help ..
    we dont need to use CMOD or SMOD for this .
    The search help exit are implemented as function module (newly created) . 
    The place for exit in search help is blank but we can assing our exit ( FM created ) into that . Take the F1 help of that in change mode of search help .
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    well  which search help you want to change. and what changes are needed .?

  • How to insert variable for table name in Select statement ?

    I am creating a stored procedure which will take two table names as IN parameters. Within the procedures I would like to use the parameters in the following manner;
         SELECT count(*)
         INTO v_target_cnt
         FROM TargetTable;
    TargetTable is one of the parameters passed in. When I do this however it does not recognize the parameter. I have tried assigning the parameter to a local variable and using the variable, with not luck.
    Any help....thanks

    Null,
    What you are describing is called a LEXICAL parameter, which is allowed (preceded by an ampersand) in sql but not in pl/sql because it would not be possible to compile it. That is why you need to use Andrew's suggestion to make the sql dynamic. In older versions you would need to use DBMS_SQL which is horrible and now thankfully redundant.

  • Party identifiers : is it possible to put a variable in field "name" ?

    Hello,
    I have created a party and have added an identifier. I would like to variablise the "Name" value of this identifiers, which is  "hard coded"  for the moment.
    Is it possible to do it through a value mapping for instance, or by any other mean ?
    Many thanks,
    Best regards,
    GL

    Hi,
    Identifiers are used in the following areas of SAP Exchange Infrastructure.
    ·        To identify communication parties
    ·        In value mappings.
    ·        To set a receiver in the proxy runtime
    For identifies in party check this:
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/36bf393a06ec4fbd079233c3fcdea2/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/63e03fc2269615e10000000a155106/frameset.htm
    Thanks
    Swarup

  • How can we use variables for instance name?

    I'm using 9 textbox in my stage. Names are similar, only difference is the last character. (s1_0, s1_1, s1_2, ...). I'm trying to use these textbox in a loop. But I couldn't find the right typing... s1_[i], s1_(i) or s1_{i} gives error.
      s1_0.text=0
      s1_1.text=0
      s1_2.text=0
      s1_3.text=0
      s1_4.text=0
      s1_5.text=0
      s1_6.text=0
      s1_7.text=0
    how can make the shortest typing for this issue?

    yes, its working, thank you very much...
    I tried array operator but the word "this"..
    what does it means ? when I delete this word, it gives error. how does flash know that it is a instance name?

Maybe you are looking for

  • Is there a way to create an if statement in dreamweaver?

    I am currently building a website that sells industrial seating. There is a seat called SP006 that appears both in section, "small suspension seats" and "construction". So far I have been resaving the same page twice but renaming it "sp006_constructi

  • While running the page i got the below error

    Hi All, i am new to oaf. plz help me. i am try to running the page i got the below error. Error(14,8): class wnsgs.oracle.apps.pa.managerinformation.server.ManagerCustomTableEOImpl should be declared abstract; it does not define method setLastUpdateL

  • Can 2 Mac Mini's share the same wireless keyboard

    I have just purchased a 2nd mac Mini and tried to get it setup but it would not accept my keyboard. It took a wahile but did recognoze the mac address but did not seem to accept it and kept on searching. Does it need it's own keyboard? It accepted th

  • Want to upgrade my OS but cant find any for my platform 4.2.0.113

    is there an OS upgrade for platform 4.2.0.113? my current OS is 4.6.1.250 and i have'nt seen any upgrades for the longest while Solved! Go to Solution.

  • Using the MXL USB.006 microphone with logic express 7.2.3

    When I have the USB audio codec selected in logic express 7.2.3 (macbook pro, intel dual core) I cant get any sound from my speakers on the laptop, or the headphones I use with the laptop headphone jack. I can record vocals but can't hear playback. I