Set a tabular field value using getElementById().value

Hi
I have tried everything and now I hope some of you can help me.!!!
I have made a tabular report based on a query:
and I want to copy the value of one field into another field on the same record when clicking on a edit-link field I have made.
SELECT-statement:
select rownum ,
HTMLDB_ITEM.HIDDEN(10, a.itf_tab_col_id ) ||
htmldb_item.POPUP_FROM_QUERY(11,TRANSFORM_VALUE,
'SELECT itf_column_name disp,itf_column_name ret
FROM om_itf_tab_col where itf_table_id=:P73_itf_table' ) TRANSFORM_VALUE,
HTMLDB_ITEM.TEXT(12,nvl(MAP_ITF_TARGET_ID,-99)) MAP_ITF_TARGET_ID,
HTMLDB_ITEM.TEXT(13, a.itf_table_id ) itf_table_id,
HTMLDB_ITEM.TEXT(14, a.itf_column_name ) itf_column_name,
a.itf_COL_DESCR itf_col_descr,
HTMLDB_ITEM.TEXT(16,'' ) dummy
FROM om_itf_tab_col a,
om_map_itf_target c
where a.itf_TAB_COL_ID=c.itf_TAB_COL_ID (+)
I have made this Column-link on the column itf_table_id
javascript:setValues('#ITF_COLUMN_NAME#','#ROWNUM#');
function setValues(col, rownum){
rownum='0002';
document.getElementById('f16_'+rownum).value = col;
If I change it like this, It copy the value to the correct field but always to rownumer 1.
function setValues(col, rownum){
rownum='0002';
document.getElementById('f16').value = col;
}

Thank you very much for answering me !!!
I got response but the value always show 'N' even i change it to 'Y'
I changed the function like this:
function displayValue(FieldVal)
alert('Rownum ='+FieldVal+' value=' + document.wwv_flow.f30[FieldVal].value)
and I get this result when I e.g. changes the value from N to Y on row 3:
Rownum =3 Value=N
what do I miss?
Evelyn

Similar Messages

  • Setting a date field to a default value if it's left blank by the user?

    I want to set a date field by default to 31/12/2499 if the user doesn't input anything. I want to do this in WHEN-VALIDATE-ITEM trigger .
    How should my code be like please ? Is it something similar to this :
    IF :HS_HEADS.DT_TO IS NULL THEN
         HS_HEADS.DT_TO =:'31/12/2009';
    ELSIF
         ALERTS.STOP_ALERT('Date must be greater than or equal to system date', choice);
         RAISE FORM_TRIGGER_FAILURE;
    END-IF;
    Thanks.

    Isn't it too late to set default value in WHEN-VALIDATE-ITEM? It will not fire if user doesn't input anything
    I would set properties of HS_HEADS.DT_TO as following:
    Data Type = Date
    Initial Value = 31/12/2009
    Format Mask = DD/MM/YYYY
    And in WHEN-VALIDATE_ITEM just validate that date is not less then SYSDATE
    IF :HS_HEADS.DT_TO < trunc(SYSDATE) THEN
    -- alert
    RAISE FORM_TRIGGER_FAILURE;
    END IF;BTW, why do you default to hard-coded 31/12/2009? Is your application only good until end of the year?

  • BPC 7.0 MS Script-Logic problem: New values used, old values written?

    I am trying to using BPC Script logic to update my Sales cube, specifically Revenue=Units*Price and Price=Revenue/Units using the "Price" stored in a seperate Price cube.
    Inside default.lgl, I am *INCLUDE-ing my own script:
    *LOOKUP PRICES
    *DIM PREIS:ACCOUNT="Price"
    *ENDLOOKUP
    *WHEN ACCOUNT
    *IS "Units"
    *REC(FACTOR=LOOKUP(PREIS),ACCOUNT="Revenue")
    *IS "Revenue"
    *REC(EXPRESSION=%VALUE%/LOOKUP(PREIS),ACCOUNT="Units")
    *ENDWHEN
    *COMMIT
    Now, when I insert new "Units" values using the std. Excel template, strange things happen:
    - The Revenues seems to be computed and updated correctly in the cube (if I check them using excel templates, they show up).
    - The Units seem to have the values they had before... seems they get old values ?!
    E.g. if I have several write operations say, I write units=2,3,4 and price is constant 10,
    the values in the cube seem to be (table):
    value written, units in cube, revenue
    3 , 2 , 30
    4,  3 , 40
    The new value is somewhere in the MS Analysis cube, otherwise, how could later be the new value be shown, although the excel templates seem to show old values?
    Any explanation for that strange behaviour?

    I simplified and wrote the prices in the same cube as I send the data from with the excel template.
    I tried using:
    *WHEN ACCOUNT
    *IS "Units"
    [Account].[#Revenue]=[Account].[Units]*[Account].[Price]
    *ENDWHEN
    *COMMIT
    *WHEN ACCOUNT
    *IS "Revenue"
    [Account].[#Units]=[Account].[Revenue]/[Account].[Price]
    *ENDWHEN
    *COMMIT
    Now, if units are send from the excel template, revenue is calculated correctly.
    If I enter revenue instead, seems that the 1st block is executed as well (why????!!!/how to avoid - I use *WHEN - what else should I do? )  which would explain the behaviour I get the old values for Units and Account again...
    Related: How can I use "*WRITE_TO_FILE"? I tried both
    *WRITE_TO_FILE Mylog.txt
    *WRITE_TO_FILE "Mylog.txt"
    But I can't find these file after sending data through the excel template... Do I have to create the files manually first or give full Path Names?
    Thanks!

  • Tabular form query using column values delimiter

    I wanted to know, if i can query a tabular block by entering the column values (primary key) as semicolon delimited and update required fields. Please let me know.
    Requirement:-
    User will enter 5 values as "AB1; AB2; AB3; AB4; AB5"
    After entering I need to write a plsql code to query the tabular form as follows
    PrimaryCol SecCol
    AB1 IN
    AB2 IN
    AB3 OUT
    AB4 IN
    AB5 ON
    Then I will update the columns accordingly.
    Please help me.

    You could put something like this in the WHERE-clause (assuming that :BLOCK.QUERYDATA contains your value AB1;AB2;AB3;AB4; )
    INSTR (';' || PK_COLUMN || ';', ';' || :BLOCK.QUERYDATA || ';')>0Maybe you have to additionally eliminate space in :BLOCK.QUERYDATA

  • Export/Import the mapping value used in Value Mapping Function

    I used value mapping function, so I defined some mapping data at Integration Directory. now I need migration from development xi to production xi, so How to export the data I input at development xi and later import it? or anyone could provide other solution for replacing value mapping function?
    Hope from your helps
    Thanks
    Spring
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang

    Hi Spring Tang,
      You can export your mapping object in .mte format.
      For this press ctrl+shift and right click in the
      mapping editor. Then go to tools and export the same.
      Similarly you can import the mapping object.
      Hope this will solve your problem.
      Thanks and Regards
      Vishal Kumar

  • Issue in getting current row value using getCurrent Value

    Issue:When I call ththe method executeSearchVO from controller class
    with Row row = personalActionSearchVO.first();
    I am getting the corresponding value.
    but my requirement is I have multiple record , If i press action on any of the record, I need to read SITName value for the particular record and need to pass it as parameter to other pager(i mean If i select any record, I need to get corresponding value in the attribute for the record.)
    if i comment personalActionSearchVO.first(); i am getting null pointer exception.
    Pl. helpme how to get current row instead of first row always.
    AMIMPL Clause
    public void executeSearchVO(String loginPersonId)
    XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
    personalActionSearchVO.initQuery(loginPersonId);
    // Row row = personalActionSearchVO.first();
    row = personalActionSearchVO.getFirstFilteredRow("action","1");
    Row masterRow = row;
    personalActionSearchVO.setCurrentRow(masterRow);
    OARow Row1 = (OARow)personalActionSearchVO.getCurrentRow();
    System.out.println("Org "+Row1.getAttribute("Organization"));
    calling this method from controller clause
    if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
    System.out.println("Person Id "+ pageContext.getParameter("XXHRPersonId"));
    Serializable methodParams[] = {pageContext.getEmployeeId()+""};
    applicationModule.invokeMethod("executeSearchVO",methodParams);
    need it urgently. pl. help
    thanks
    siva

    Timo,
    I am new to Jdevloper. I will explain the issue in detail.
    Version: Oracle 9i Jdeveloper
    I have a query page with multiple records. when I perform action , I need to pass 2 parameters from query screen to my actual page.
    1 parameter is Login person Id,. Now the issue is with getting current value for 2nd paramenter. 2nd Parameter will be changed depends upon record i am choosing in my query page: column is : Information Name.
    when I use getcurrentrow , I am getting null pointer exception.
    My controller class when I click action button :
    if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
    Serializable methodParams[] = {pageContext.getEmployeeId()+""};
    applicationModule.invokeMethod("executeSearchVO1",methodParams);
    {color:#993300}
    // Here I need to get InformationName value based on the record I am choosing{color}
    HashMap hashMap = new HashMap(2);
    hashMap.put("XXHRPersonId", pageContext.getParameter("XXHRPersonId"));
    // hashMap.put("InformationName", methodParams);
    pageContext.forwardImmediately(
    "OA.jsp?page=/xxhr/oracle/apps/xxhr/selfservice/personalaction/webui/XXHRPersonalActionPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashMap,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    my AMIMPL Clause :
    I am just pasting whatever I have tried. Pl. suggest me If my code is wrong.
    *{color:#993300}I need to get current row information value from the below method*
    *{color}*
    public void executeSearchVO1(String loginPersonId)
    XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
    personalActionSearchVO.initQuery(loginPersonId);
    System.out.println("Row count "+personalActionSearchVO.getRowCount());
    // Row row = personalActionSearchVO.first();
    Row row = personalActionSearchVO.getCurrentRow();
    System.out.println("Informaton Name "+row.getAttribute("InformationName");
    In this , If i initialzie with Row row = personalActionSearchVO.first();I am able to get value for my column Information Name.
    whereas, if I use directly Row row = personalActionSearchVO.getCurrentRow();, i am getting null pointer exception.
    Pl. let me know how to get current row value for Information Name.
    Looking for the reply at the earliest.
    Thanks
    siva

  • How do I set the Text Fields alignment using LiveCycle 7.1

    I created a Form using LiveCycle Designer 7.1 with a few sample Text Fields. Each text box is about 0.75" in height to accomodate a few lines of text within it - it will be holding a description field so the data could be quite large. When my PDF document gets populated with data from an XML file via a .NET Web Page, the text is shown in the center of the Text Field. However, I need the text to be dispalyed at the Top of the Text Field, not in the center. Does anyone know where the option is to make this happen?

    In the paragraph tab. You may have to open it the first time from the Window menu.
    Chris
    Adobe Enterprise Developer Support

  • I get this error message when I try to use or set up publish services... An internal error has occurred: ?:0: attempt to index field 'exportSettings' (a nil value)

    Can anyone help with this error message when trying to use publish services?  An internal error has occurred: ?:0: attempt to index field 'exportSettings' (a nil value)

    Can anyone help with this error message when trying to use publish services?  An internal error has occurred: ?:0: attempt to index field 'exportSettings' (a nil value)

  • How to use Default value in a column in Tabular form in insertion or upda

    Hello,
    I am trying to use Default values so that user need not have to enter data, but when I select default type and put a default value, I see an error message, if I try to add a new row.
    How can I use a default value in a Column in a Tabular Form?
    Gouri
    Edited by: user1046395 on Apr 3, 2009 9:58 AM

    Gouri,
    You can just simply edit to each column's report attribute. For example,
    To set default date,
    Default Type: PL/SQL Expression of Function
    Default: sysdate
    To set default text,
    Default Type: PL/SQL Expression of Function
    Default: *'CLERK'*
    If you still have an error, what is the error message?
    Ittichai

  • Oracle 11.1.0.7.0 Issue with Streams when using NULL value in a key field

    Hi,
    we have an issue in our replicated environment using Streams.
    We have a replicated table using the following index:
    UK_S01_TEXT_FORMAT_TBL01 SOGID
    UK_S01_TEXT_FORMAT_TBL01 INDEX_TEXT_FORMAT_ID
    UK_S01_TEXT_FORMAT_TBL01 INDEX_LANGUAGE_LABEL
    UK_S01_TEXT_FORMAT_TBL01 INDEX_TEXT_FORMAT_COUNTER
    UK_S01_TEXT_FORMAT_TBL01 INDEX_PROVIDER_ID
    UK_S01_TEXT_FORMAT_TBL01 INDEX_TARIFF_PLAN_COSP_ID
    with field INDEX_PROVIDER_ID allowing NULL values. Actually we insert empty strings in there, but as far as I understand Oracle will convert it sliently in a NULL value, which is fine to our application.
    When we apply a change on that table (either update or delete) we get errors at streams level and the transaction is not propagated.
    Local Transaction ID: 6.28.11170
    Source Commit SCN: 25397175
    Source Commit Time: Dec-03-2012 12:21:30
    Error in Message: 1
    Error Message: ORA-26787: The row with key ("INDEX_LANGUAGE_LABEL", "INDEX_PROVIDER_ID", "INDEX_TARIFF_PLAN_COSP_ID", "INDEX_TEXT_FORMAT_COUNTER", "INDEX_TEXT_FORMAT_ID", "SOGID") = (ITALIAN, , , 0, MIKE, 124) does not exist in table
    SMS.S01_TEXT_FORMAT_TBL
    ORA-01403: no data found
    message: 1
    TableName: S01_TEXT_FORMAT_TBL
    Operation Type: DELETE
    _____ Old Data _____
    SOID : 1010000008
    SOGID : 124
    INDEX_TEXT_FORMAT_ID : MIKE
    INDEX_LANGUAGE_LABEL : ITALIAN
    INDEX_TEXT_FORMAT_COUNTER : 0
    TEXT_FORMAT : Hai raggiunto i 100MB di traffico incluso nello scatto
    APPLICA_PERIOD_CRI_ID :
    INDEX_TARIFF_PLAN_COSP_ID :
    INDEX_PROVIDER_ID :
    If I force the set of primary keys to be only the NOT NULL fields, I can successfully apply the error, but since we may have them storing both NULL and NOT NULL values, this is not a solution.
    I'm wondering why the DB on one hand converts the empty string in a NULL while inserting, but it looks the Apply process onStandby is not able to do the same when looking for the record before applying the transaction.
    Thanks in advance!
    Cheers,
    Mike

    Its showing all objects the user has permission to see- why does that need to be restricted?

  • How to use a value in a field

    Hi!
    I made a tree that shows data from 2 tables.
    When i pick one of the items in this tree, The tree gives me the ID and put it in a text field.
    Now, I want an event that gives me some values using this ID and later fill some text fields in the same page.
    In few words, i want an event after i receive the ID in a text field to get more data and field some text fields with these data.

    Thomas,
    By the time the value appears in a field -- an "item" in HTML DB terms-- you can reference it using bind variable syntax. To populate other items based on this key value, you could use a Before Header process such as:
    select ename, sal
    into :P1_ENAME, :P1_SAL
    where empno = :P1_EMPNO
    Assuming you have items on your page called P1_ENAME and P1_SAL, respectively. Furthermore assuming that the text field (item) that the ID was put in is called P1_EMPNO.
    So, you don't really need to create an event. In this case, the event is the loading of the page, which will trigger your process before its header is rendered. The process will populate form fields (by populating session state) based on a session state value set by you clicking on a tree link.
    Sergio

  • Can't set a hidden field value from onClick event with a runtime expression

    Hi,
    I need to set a hidden field in an onClick event of button but it's not working.
    <html:submit styleClass="btnLink" onclick="document.empForm.hidden.value='<%= empID%>'">
    <%= empID%>
    </html:submit>
    Althought the second expression is evaluated and written successfully "the button value"
    I heard that this is because you can't mix the value of an attribute of a custom tag with both string literal and run time expressions.
    Is there any work around to solve that?
    I can't use EL as I'm using old JSP version

    I guess, it should work; instead of html:submit, try with button.

  • How do I retain a PDF form widget's design when setting its value using Javacript in Acrobat?

    I've been experimenting with interactive PDF forms in InDesign and JS in Acrobat. I think I've encountered something that might be a bug: widget design is overriden when using Javascript to set the field's value in Acrobat. Here's what a checkbox, for example, should look like when checked:
    However performing:
    var f = this.getField("Checkbox");
    f.value = "Yes";
    in the JS Console results in the widget's appearance defaulting to acrobat's:
    I've tried every single widget property documented in Acrobat's Javascript API Reference to no avail. Initially, checking/unchecking using the mouse works fine. Once the value has been set using JS, Acrobat's default black check character is used for all subsequent toggling, including when using the mouse...
    How does InDesign export interactive PDFs with custom icons for widgets? Is there any way to enforce the use of those icons using JS in Acrobat Pro? What's the difference between selecting a checkbox or a radio button using the mouse and setting its value using JS?

    I thought it might be the case, too, but all widgets have the same properties both before and after setting the value with JS. I did this check using all documented properties in Acrobat JS Reference in an attempt to figure out what might be going on.
    By the way, I don't think Indesign necessarily uses glyphs for the checked state of widgets, although in this case a glyph is used (albeit with different stroke and fill colours for the glyph, acrobat doesn't allow setting these properties AFAIK). With Indesign CS6 it seems you can practically use any Indesign tool to design the widget's On and Off states. So I'm thinking that maybe Indesign exports these with button-like properties where there are no restrictions on appearance (I think there is an "icon" property/object for buttons or something like that). However Acrobat treats them as checkboxes, so if that is the case it is more of a hack. Is there a way to probe an object's various properties other than using JS or the properties pop-up dialog?

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

  • Can you use a formula field as the default value of a parameter?

    I'm wondering if you can use a formula field as the default value of a parameter. I have an date parameter that is being pulled from a stored procedure. When I run the report, it defaults to the current date and time. I would like it to default to he current date and have the time be 00:00:00

    Hi,
    Unfortunately, you cannot use a formula field as the default value of the parameter.
    And, to get rid of the current time and show 00:00:00, all you need to do is Edit the parameter and set the 'Default Value' to 00:00:00. This will take care of the time portion, however the date portion would be set to the year 1899 and not the current date.
    Hope this helps!
    -Abhilash

Maybe you are looking for

  • How do I fix my VI when error -1074000000 and -213 "Init ignored" comes up and what does it mean?

    When I run Test Main 002.vi in debugging mode, this error continues to pop up.  I am finding and recording the voltages for a Keithley 2700 multimeter.  I have Test Main 002.vi call on Read Volt.vi and this VI calls on Configure Volt Task.vi.  I got

  • How to get breakup of Supplier Liability A/c

    Hi, I am want to develop a report which gives breakup of Supplier Liability a/c. Liability A/c: 01-00-00-12111-00 Supplier: abc Invoice_number.................Invoice Date...................Invoice Amount................Remaining Amount Sub-Total Sup

  • Essbase aliases used in OBIEE

    Reporting against Essbase, I noticed that dimension level "aliases" as defined in Essbase are brought over to OBIEE (and not the original non-alias values). Apart from removing aliases within your Essbases layout, is there a setting or option somewhe

  • HT5500 how can i post on facebook via ios?

    how can i post on facebook using IOS like for example "Im happy" via IOS

  • VoIP (SIP) configuration guide for Nokia 5800xm

    hi.everybody i would like to ask how to configure this  VoIP (SIP) configuration for my n5800, because when i saw and follow this link http://www.elisanet.fi/craig/sipvoip/nokia_n97.html ,i only configure my SIP setting and not my net setting which i