Automatic population table form

I have table form. I need to automatic populate certain fields of this table form with values based on selections made by users in their select lists. As in this example http://htmldb.oracle.com/pls/otn/f?p=31517:106:3816553832235531:::::
Suppose, 1 row has 10 columns - 5 select lists and 5 text fields (these text fields get values based on values of select lists).
Does this mean, that for table form (20 rows) I must create 100 application items for storing temporary values of select lists?

Denes Kubicek wrote:
You will need only one application item ;)
Denes Kubicek
Ok. I have the following Application Process On Demand for one element of table form (f16_0001 - row 1 column 16):
DECLARE
v_stoim_mdf   NUMBER(15,2);
CURSOR cur_c
IS
SELECT STOIM
FROM TIP_MDF_STOIM
WHERE KOD_TIP_MS = TO_NUMBER (v ('TEMPORARY_STOIM_MDF'));
BEGIN
FOR c IN cur_c
LOOP
v_stoim_mdf := c.STOIM;
END LOOP;
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="f16_0001">'  || v_stoim_mdf  || '</item>');
HTP.prn ('</body>');
EXCEPTION
WHEN OTHERS
THEN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="f16_0001">' || SQLERRM || '</item>');
HTP.prn ('</body>');
END;
The following JavaScript for update TEMPORARY_STOIM_MDF:
+<script language="JavaScript" type="text/javascript">+
+<!--+
+function pull_value_mdf(pValue){+
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
+'APPLICATION_PROCESS=Set_stoim_mdf',0);+
+if(pValue){+
get.add('TEMPORARY_STOIM_MDF',pValue)
+}else{+
get.add('TEMPORARY_STOIM_MDF','null')
+}+
gReturn = get.get('XML');
+if(gReturn){+
var l_Count = gReturn.getElementsByTagName("item").length;
for(var i = 0;i<l_Count;i+){+
+var l_Opt_Xml = gReturn.getElementsByTagName("item");+
var l_ID = l_Opt_Xml.getAttribute('id');
var l_El = html_GetElement(l_ID);
+if(l_Opt_Xml.firstChild){+
var l_Value = l_Opt_Xml.firstChild.nodeValue;
+}else{+
var l_Value = '';
+}+
+if(l_El){+
+if(l_El.tagName == 'INPUT'){+
l_El.value = l_Value;
+}else if(l_El.tagName == 'SPAN' &&+
+l_El.className == 'grabber'){+
l_El.parentNode.innerHTML = l_Value;
l_El.parentNode.id = l_ID;
+}else{+
l_El.innerHTML = l_Value;
+}+
+}+
+}+
+}+
get = null;
+}+
+//-->+
+</script>+
I don't know what the code need for any other rows. How update the other rows?

Similar Messages

  • Automatically populating a Form from data stored in Access

    Hi,
    I need help automatically populating a form from data stored in Access. The form needs to have specific fields that are updated from an Access database. I want to be able to enter a site number and have the subsequent list of information (approximately 35 pieces of data) populate. I DO NOT want to update the Access database via the form. The form is for quick viewing and documentation only, not data entry. Currently I've been doing this with VB in Access which exported the data to a Word Document which was then saved as a PDF. It seems easier and less troublesome to go directly to the PDF form, but I can't figure out how!
    I have already connected my database to the form using OLEDB.
    I don't want a dropdown list and I don't want buttons to scroll through the sites (I've already found out how to do that through this forum).
    Any help would be very much appreciated!!

    Some more help to get started in this.. would be really appreciated..Are you trying to come up with the graphs yourself? IF so, are you familiar with MVC?

  • Automatically populating the form using a function

    I'd like to create a form for clubs to register their members. In this form I want it to include the payment they will owe to Provincial, National and International levels. Is there a way to create the form so that the person filling it out can select which Province they belong to which will then automatically populate the areas with numbers (cost) pertaining to their province?
    Thanks,
    Rebecca

    I am sorry but Formscentral doesn't support any conditional or contextual filling.
    Andrew

  • Automatic filling of form table-fields in the document

    Hi Gurus,
    We are working with sap RM on WAS640.
    In our Record Model we need to include a Word document that is to be used as a template. Inside the template we defined a table which has a fixed number of columns and one line which will be contains one position of a SAP document (for example an order).
    We want to fill the lines of the table at run time. We need that the system add a new line to the table inside of  the document/template, if necessary (SAP document has more than one position), dynamically.
    Is it possible by means of de connection parameter <b>FUNCTION_GET_FORM_DATA</b>?. if no, does exist another ‘exit’ to fill this kind of ‘table’ form fields dynamically?
    Thanks in advance,
       Cima.

    "path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
    Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
    Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
    The notes following the description:
    Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
    (Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
    How to Save a PDF with Acrobat JavaScript

  • Display read only field in table / form from another vo

    i came across couple of scenarios where i had to bring a field in a table / from from other vo than on which most fields in table / form were based. in all cases i had to display the field from another vo as read only and there was only one record in other vo which was related to previous vo in table / form. for this i created a view accessor and created a soc with model driven lov. the problem with this is that first element alwasy shows blank in soc. how can i display the filled soc with first element populated and read only in this scenario. i tried alternatively with groovy expressions but other people in team said it is not good practice to use groovy expressions to fill fields in one VO from other VO. how can i acheive this requirement with soc component / lov / view accessors. is there any other alternative as well. jdev 11 1 1 5

    1) in the attribute of the VO select the 'List of values' node and edit the list attribute you see there; in the dialog select the UI Hints tad and make sure the checkmark for the 'Include "no Selection Item' is off.
    2) you can base a VO on to EO which are then joined via one or more attributes (association)
    Timo

  • Problem while populating table dynamically

    Hi,
    I am facing a strange problem when I execute a search component (custom developed component).
    <b>Problem summary:</b>
    I am getting first 5 empty rows (default visible row count, when I set the table's visible row count to "n" then the data in the first "n" rows are not visible) from the SAP R/3 when we fetch the data using this component. The data is available for the next consecutive rows starting 6th  {(n+1)th} row. Here I am facing another strange behavior, I moved the table row position using the table paginator and viewing the data in the next consecutive rows and reset the view (invalidating the context and setting the visibility of the table to NONE), when I invoke the search again the data is missing in the 6-10 rows(the table data is paginated to the 6-10 records automatically), now the data is visible in the first 5 rows.
    <b>The details of softwares:</b>
    SAP WebAS 6.40 SP9
    SAP NetWeaver Developer Studio Version: 2.0.9
    JDK version - j2sdk1.4.2_06
    <i>Note:</i>
    1. The table creation and data population are done dynamically.
    2. The same code works fine for SAP WebAS 6.40 SP8
    3. When I tried fetching some data from SAP R/3 and displaying it in a table (table is created during design time and data population is achieved through standard context binding), it works fine.
    If any of you get any clue in solving this issue, please do let me know.
    Thanks in advance.
    Thanks & Regards,
    Santhosh.C

    Hi Thomas,
    I am running the application from the NDS and the URL look like the below URL
    http://<<machine_name>>:50000/webdynpro/dispatcher/sap.com/parentgenericsearchhelpcomponent/PerentSearchDemo?SAPtestId=1
    I am using IE6.0 SP2
    Yes the application is working fine in SP8 and giving problem in SP9.
    I have a parent component which calls another component(childcomponent), which has this dynamically populated table. I am using window.open() to open the window in the child component.
    To answer your last question,
    I don't see full of empty rows, I see empty rows for the first visble row counts(5 or 10, if the total fetched row count might atleast 1 more than the visble row count). The data is available from the first visible row count+1. If I come back and see the first vible row count, still the rows are blank.
    Thanks & Regards,
    Santhosh.C

  • Automatic New Tables

    I tried searching for an answer to this but I don't really know what terminology to use. So I apologize if this has been covered recently or is really easy to find in the user's guide.
    I'd like to be able to automatically fill tables using data from another table. Let me lay out my exact scenario so this will make more sense. I'm creating a master roster for everyone attending an all night event for teenagers. Some of the attendees are adult counselors. Also, some of the students attending are sort of like student helpers. So I'd like to make three other tables that would auto fill with data from the master table based on this criteria. For example, if the student column in the master table equaled "yes" then that student's row would also be added to the "Student" table. But if the student leader column in the master table also equalled yes, then that student's row would be added to the student leader table. Lastly, if the counselor column in the master table equalled yes, then that person's row would be added to the counselor table.
    I hope this makes sense. I know that I can "categorize" by this column, but I'd like to keep my master table as it is and be able to look back and forth at the different categories without having to re-categorize all the time.
    Thanks for your attention to this post. Best wishes.

    Wilsone wrote:
    the setup you posted doesn't completely matchup what I'm trying to do. I actually have several types of counselors and need more than three sub-tables, so I was trying to figure out the process so that I could apply it to exactly what I was doing.
    But the setup Yvan posted doescome very close to a "completely matchup" of what you said you were trying to do:
    So I'd like to make three other tables that would auto fill with data from the master table based on this criteria. For example, if the student column in the master table equaled "yes" then that student's row would also be added to the "Student" table. But if the student leader column in the master table also equalled yes, then that student's row would be added to the student leader table. Lastly, if the counselor column in the master table equalled yes, then that person's row would be added to the counselor table.
    Yvan used checkboxes to indicate if the person was a counsellor ("adult") or was a student leader ("helper"). Other than the labels, that's a close match for your Counsellor and Student Leader tables.
    His interpretation of the third category differs from mine, though.
    Yvan's formula for column D ("basic") assumes that a Student Leader ("helper") is not to be included on the "Student" table. My reading is that the student leaders are also Students, and should be on both tables.
    Here's Yvan's formula, followed by a version that will mark the "basic" column for inclusion in the Students table:
    =IF(OR(B=TRUE,C=TRUE),"","*")
    =IF(B=TRUE,"","*")
    I wouldn't make the change yet, though. The edited formula works fine for only three categories on the table, one of which (Students) includes the members of one of the others ("helpers").
    But you have more that three categories, so in its present form, the edited formula won't work for you.
    Columns E, F and G of Yvan's main table are indexes that tell Numbers which names to include on each sub table.
    The formula in column E: IF(B=TRUE,ROW(),999999)
    places the row number in the cell if the checkbox in that row of column B is checked, or the number 999999 if the box is not checked.
    You'll note that the first three small numbers in column E are 2, 7 and 8, and that those are the row numbers of the first three checked boxes in column B.
    The formula in column F is the same except for the column it references (C), and does the same thing.
    The formula in column G is the same, except for the column reference (D) and the condition (D="*").
    The assumption here is that anyone who is on the master list is in only one of the three categories. For rows where neither of the first two checkboxes is checked, the person must be in the third category ("basic"). The (original) formula in column D looks at columns B and C. If either has been checked, the formula puts a null string ( "" ) in its cell, if neither has been checked, it puts a marker ( "*" ) in the cell.
    The presence of that marker (D="*") is what makes the formula in column G place the row number in its cell, marking the name for inclusion in the "basic" (Students) table. See rows 3, 5 and 7.
    For your case, which has more than three categories, you will need a column of checkboxes for each category except "Students", for which you can use the same technique as Yvan, with a formula revised to fit the new conditions. (See below)
    For each (checkbox) category you will also need a matching 'index' column, similar to and using the same formula as those in columns E and F of Yvan's table, plus an index column using the similar formula using "=*" for the "Students" column.
    Formulas for each of the breakout tables (sub-tables) will be the same as those for Yvan's example, with the column reference changed to match the index column for each table.
    The Warning table will need one row for each breakout table. The two column references in the formulas for this table need to match column A on the table for which the warning applies, and the column on the main table holding the checkboxes (or "*"s ) for the category matching that table.
    The formula for the "Students" (or "basic") column will depend on how many categories of 'counsellor' there are , how many 'student leader' categories there are, which columns hold the checkboxes for each of these categories, and whether 'student leaders' are to be included in the 'students' table as well as one or more of the 'student leaders' tables.
    The formula below is for three categories of Counsellors (checkboxes in columns B, C and D; excluded from the 'students' column and table), two categories of Student Leaders (checkboxes in columns E and F; included in the 'students' column and table) and one category of Students (column G; includes all who are NOT checked in columns B, C or D).
    G2 (and Fill down):   =IF(OR(B,C,D),"","*")
    Remember that you'll need an index column for each breakout table.
    Regards,
    Barry

  • Displaying data based on selection in tabler form

    Hi ALL,
    I have created report with three columns, from the three first column is select list. And initially user can't see any record, once user select "Add Row" button then one row will be displayed with empty data. Now when user selects one value from first column of select list then data needs to get populated for other columns in the row.
    I am able to do this it the select list is an item with a property of "select list on submit". But I could not able to go with the tabler form.
    Can anyone help me and also make me to find a related example too...
    Thanks & Regards
    Vishwanath

    Hi All,
    Please tell me if my question is not clear. I am waiting for the reply. Please help out in resolving this issue.
    Thanks
    Vishwanath

  • Copying table rows from one table to another table form

    Hi
    I have a problem about Copying table rows from one table to another table form.On jsf pages if you enter command button go anather jsf page and it copy one row to another table row. But when i execute this process for table FORM it doesn't copy I wrote a code under "createRowFromResultSet - overridden for custom java data source support." Code block is:
    ViewRowImpl value = super.createRowFromResultSet(qc, resultSet);
    try{
    AdfFacesContext fct = AdfFacesContext.getCurrentInstance();
    Number abc = (Number)fct.getProcessScope().get("___");
    value.setAttribute("___",abc);
    }catch(Exception ex){System.out.println(ex);  }
    return value;

    Table may be copied with the
    expdp and impdp utilities.
    http://www.oracle.com/technology/products/database/utilities/index.html

  • Payment Method automatic population in FB60,FB65,FBV0,FV60,FV65 and MIRO

    Hi,
    We have a requirement of automatic population of payment method from vendor master in transaction codes given.
    Do we have any userexit,BADI for this purpose?
    Regards,
    Praveen

    Dear Praveen,
    You could think to put the payment method into the term of payment by OBB8.
    And then put the payment terms into Your vendor master data.
    I hope this helps You.
    mauri

  • Assignment field being automatically populated in Vendor Credit Memo

    Dears,
    While posting Vendor Credit Memo with Reference Invoice (field Inv.Ref under Payment tab) the Assignment field (field Assign. under Details tab) is being automatically populated with assignment value from the referenced invoice.
    Is there a way to disable automatic Assignment field population?
    Thanks in advance,
    Robert

    Dears,
    No sorting keys exist for GL Master Vendor reconciliation account and still assignment is being copied (Data was copied
    Message no. F5343)
    Substitution is not an option as it's being done when posting, and not at the moment of invoice creation.
    Thank you for any ideas.
    Best regards,
    Robert

  • Approval preview in SRM in table form by default...

    Hi experts,
    Please tell me, what should I do to have document approval preview in SRM (5.0 version - Extended Classic) in table form by default? In standard, default setting is that approval preview is shown as a java applet graphics. But I have to make it by default visible in table form with option to change it to java applet graphic, if someone needs that. Can I do it somewhere in spro?
    Regards
    RafaD

    Hi
    <b>Please look in SRM - SPRO Settings -></b>
    <u>Here is the path -></u>
    SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow -> Activate Signed Java Applet for Approval Preview and Documents
    <b>Deactivate java applet approval preview</b>
    <b>Also, please see the SAP Consulting OSS Notes, which talks about the same problem -></b>
    Note 1077956 - Follow-on document display: Tabular displ instead of applet
    Note 1028482 - Approval preview: Tabular display instead of applet
    Do let me know.
    Regards
    - Atul

  • How to catch events on user tables forms?

    Hi all,
    Is there any way to catch the events on user defined tables' form which opens from Tools-User Tables? The form Id we get is not unique so we can't initialize the form with that ID or put it in  an If  loop for pval.formUId.
    any clues?
    Thanks in advance.....

    Hi Binita,
    The UDT form should have a form type in the format:
    110xxx
    where xxx is the value in the TblNum field in the OUTB table (eg 110015 if the TblNum field is 15).
    Therefore, you can query the OUTB table for your UDT name and get the correct TblNum value and then calculate the correct form type for your table. If you want to filter events then you'll need to run this query as your addon starts and dynamically add the correct event types and filters to your addon.
    Kind Regards,
    Owen

  • Refresh table-form query on table only

    Hello,
    I have a group being generated as a table-form layout. What I would like is for the table page to be refreshed always on entry. I can't set the group requery condition to always, or "when entering the page" as then the view object is executed going navigating from the table page to the form page. This seems a very simple requirement to me but Im struggling to come up with an elegant solution.
    Basically what i need is the refreshCondition on the invokeAction binding executable to be "Always and layout=table".
    Any help would be greatly appreciated !
    Cheers,
    Brent

    How do you do this, if your current page is a .jsff and not a .jspx? When I look at the refreshCondition, a .jsff does not have access to the facesContext.
    Thanks,
    Michelle
    Since this question was already answered, I created a new thread:
    Refresh table-form query on table only for .jsff pages
    Edited by: MSchaffer on Dec 1, 2010 11:54 AM

  • User Tables form

    Hi,
    Is it possible to Add combo box in the existing field on User table form through UI API? I want to add combo box in UDT for selecting Item code.
    thanks in advance
    Denis

    Hi Denis,
    The first approach I would try is a formatted search fired when Shift+F2 is clicked. Cheap and easy.
    In a user defined form, you could use datasources to get this. But in the default form I don´t think you could do it using datasources. Perhaps I´m wrong.
    If you are in 2005, you could try the ChooseFromList object to get what you need. More elegant, but more work.
    Hope helps,
    Ibai Peñ

Maybe you are looking for

  • Value does not fall within the expected range in my itemupdated eventreceiver while accessing a splist column on the root site collection

    hi,  I am performing the below operations: 1) Itemupdated event handler when a document is uploaded into the document library 2) Now amreading another list which is in the root  site level so, i used spsite, spweb again and accessed that splist and t

  • The spinning death ball

    My iMac 24 Intel Duo chip computer recently started to slow down and then eventually I get the dreaded spinning beach ball... from there its almost impossible to get the computer to respond. I was able to open Console and found the following which co

  • Publishing EJBs takes more time in Oracle Weblogic 10.3 workshop

    Hi, We recently migrated from Weblogic 9.2 to Oracle Weblogic 10.3 workshop. I have a ejb project which has more than 30 ejb's(both entity and session ejbs). The problem is: whenever I modify the code inside a method and save, it builds the project a

  • Problems about  query filter (BEx).

    Hello there, I have some problems about  query filter (BEx). I have master data and I want to use attribute in this master data to dynamic filter in query(BEx). But this attribute is key figure. I can't done it now. TT Is this possible? If yes, could

  • CS4 PPro Audio Bug???

    This has to be an audio bug, right? There is a "main" sequence consisting of 14 nested sequences. Each of the 14 nested sequences are a "target" sequence (Adobe help terminology) made by nesting a multi-camera sequence and going through the cut proce