How can i multiply two column in collection .

hi
how can i use onBlur="javascript:amtItems()" in collection .
<script>
function amtItems(){
function getVal(item){
if($x(item).value != "")
return parseFloat($x(item).value);
else
return 0;
$x('c010').value = getVal('c008') * getVal('c009');
</script>
Manoj Kaushik

Is this related to a tabular form? You can get some help here:
http://apex.oracle.com/pls/otn/f?p=31517:213
Ths syntax of your javascript would be:
$x('f03_0001').value = getVal('f03_0002') * getVal('f03_0003');
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • How can I get two column selection list in my html form

    I required to have two column selection list in my jsp page to show name and description of a product. How can i achieve this functionality or is there any other alternative to do so.

    If i understand correctly: you can't actually create two columns in a list because it can only hold one value. The only way to achieve what you want is by concatenating the two values you want to display and put this as the value of the listbox.

  • How can i multiply 2 columns of an infoset

    Hi Gurrus,
    I am creating an ABAP Query for doing that i have created an infoset which has two Exchange Rate and Net Value, i want to multiply Exchange Rate * Net Value to get the net value in local currency, Gurrus help me out that how can i do it.

    There are two ways to do it. First as others have mentioned to create a custom field in your infoset. This will be useful if many users are going to use that field in their queries. For it you have to do a change in your infoset and create a custom field.
    Other way is local field, which do not require any coding. Also, no change in infoset, it is created directly in your query. But other queries will not be able to access it and every user has to create this local field in their queries if many people want to access this field.
    I have a blog where I have discussed step by step about both above methods. In your case there is no logical database, so dont worry just add your tables in infoset and then create a custom field for your table same as I have discussed for logical databases.
    Here is the blog link /people/shafiq.rehman3/blog/2008/06/16/sap-adhoc-query-sq01-sq02-sq03
    Edited by: Shafiq Rehman on Feb 3, 2009 10:09 PM

  • How can I sort two columns?

    I've got two columns of text (names of people, actually) in a Numbers spreadsheet. I've selected all the cells and made sure they are "text" format. I cannot figure out how to sort (alphabetically) the two columns independent of one another.
    I just want two columns of names in alphabetical order. How do I do it? Every time I select one column and sort by ascending it affects the column(s) next to it.

    Not sure I totally understand the actual question. But let me give it a shot...
    Column A = Last Name, Column B = First Name. You want to sort this list of names by Last Name, then by First Name so John Smith shows up below Alex Smith on your list. Typically you would have MULTIPLE columns of data to go along with the names; Phone, Address, City, State, Zip, etc. Right? So if you Sort only ONE column (and ONLY that column, you end up with John Smith having the wrong address, etc. etc. SO, most Spreadsheets allow you to sort multiple columns at the same time, but by only one Column Title at a time. This keeps the rest of the data in the Record in the right place. Thus, you sort Column A (Last Name) in Asending order. Now all the LAST Names are alphabetical. Next, you sort Column B (First Name) in Asending order. Now the list should show up with the last Names in the correct order, AND the First Names also - BUT all the other info (address, City, State, etc) is ALSO still attached to the right records. Clear as MUD?!
    P.S. This will ONLY work when your Title Box for each Column has a SINGLE Line of text:
    Like THIS: Last Name
    NOT THIS: Last
    Name
    The Spreadsheet will leave the TOP ROW (Titles) alone, and sort the Rows beneath the Title Boxes.
    Good luck...

  • How can I make two columns in DropDownList

    like this
    I remember that the solution met.
    Except alignment spaces in a text string.

    from the Documentation
    Creating multi-column lists
    In list controls (ListBox, DropDownList, TreeView), a set of ListItem objects represents the individual
    choices in the list. Each choice can be labeled with a localizable string, an image, or both, as specified by
    the text and image properties of the ListItem (see “Displaying images” on page 72).
    You can define a ListBox to have multiple columns, by specifying the numberOfColumns creation
    parameter. By default, the number of columns is 1. If you specify multiple columns, you can also use the
    creation parameters to specify whether headers are shown, and the header text for each column.
    If you specify more than one column, each ListItem object that you add to the box specifies one selectable
    row. The text and image of the ListItem object specifies the label in the first column, and the subitems
    property specifies labels that appear in that row for the remaining columns.
    The subitems value is an array, whose length is one less than the number of columns. That is, the first
    member, ListItem.subitems[0], specifies the label in the second column. Each member specifies one
    label, as a JavaScript object with two properties:
    { text : displayString , image : imageFileReference }
    For example, the following fragment defines a list box with two columns, and specifies the labels in each
    column for the two choices:
    // create list box with two titled columns
    var list = dlg.add ('ListBox', [0, 0, 150, 75], 'asd',
    {numberOfColumns: 2, showHeaders: true,
    columnTitles: ['First Name', 'Last Name']});
    // add an item for the first row, with the label value for the first column
    var item1 = list.add ('item', 'John');
    // add the label value for the second column in that row.
    item1.subItems[0].text = 'Doe';
    // add an item for the second row, with the text for the first column label
    var item2 = list.add ('item', 'Jane');
    // add the label text and image for the second column in the second row
    item2.subItems[0].text = 'Doe';
    item2.subItems[0].image = File ("~/Desktop/Step1.png");

  • How can I correlate two columns that belong to different worksheets?

    I am using beginner user of Numbers 3.2. I also thought of copying the columns of interest into a single sheet but don't know how to do so.
    Advanced thanks,
    Alex

    Hi alexander,
    If you are looking for a column that will update as your reference column changes, try this:
    In the first cell of your destination column type "=" (without the quotes)
    Navigate to your reference column and click the header of that column. Click the check in the formula editor. You are back at your destination cell.
    Copy.
    Click the destination column header and paste.
    quinn

  • How to multiply two collumn in collection.

    hi
    i am using collection for creating a bill .Now i want to calculate Total Amount = Quantity * Rate .
    Here APEX_ITEM.TEXT(9,a.c008) c008 is use for Quantity,
    This is use for Rate APEX_ITEM.SELECT_LIST_FROM_QUERY(10,a.c009,'SELECT RATE D, RATE R FROM ITEM_DETAILS WHERE ITEM_NAME =''' || a.c006|| '''',) c009,
    This is use for Total Amount Column APEX_ITEM.TEXT(11,a.c010) c010
    This is my Collection code
    select APEX_ITEM.HIDDEN(1,SEQ_ID),
    APEX_ITEM.TEXT(2,a.c001) c001,
    APEX_ITEM.TEXT(3,a.c002) c002,
    APEX_ITEM.TEXT(4,a.c003) c003,
    APEX_ITEM.TEXT(5,a.c004) c004,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(6,a.c005,'SELECT ITEM_GROUP D,ITEM_GROUP R FROM ITEM_GROUP_DETAILS order by ITEM_GROUP',
    'style="width:110px" '
    ||'onchange="get_select_list_xml(this,''f7_'|| LPAD (seq_id, 4, '0')
    ||''')"',
    'YES',
    '0',
    '-Select-',
    'f6_'|| LPAD (seq_id, 4, '0'),
    NULL,
    'NO') c005,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(7,a.c006,'SELECT ITEM_NAME D,ITEM_NAME R FROM ITEM_DETAILS WHERE ITEM_GROUP =''' || a.c005|| '''' ,
    'style="width:110px"'
    ||'onchange="get_select_list_xml21(this,''f10_'|| LPAD (seq_id, 4, '0')
    ||''')"',
    'YES',
    '0',
    '-Select Name -',
    'f7_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO') c006,
    APEX_ITEM.TEXT(8,a.c007) c007,
    APEX_ITEM.TEXT(9,a.c008) c008,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(10,a.c009,'SELECT RATE D, RATE R FROM ITEM_DETAILS WHERE ITEM_NAME =''' || a.c006|| '''',
    'style="width:110px"',
    'YES',
    '0',
    '-Select Rate -',
    'f10_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO') c009,
    APEX_ITEM.TEXT(11,a.c010) c010
    FROM APEX_collections a
    where a.collection_name = 'ABC'
    For With out Refresh I am using
    <script>
    function amtItems(){
    function getVal(item){
    if($x(item).value != "")
    return parseFloat($x(item).value);
    else
    return 0;
    $x('c010').value = getVal('c008') * getVal('c009');
    </script>
    How Can i Multiply Quantity * Rate in to total Amount Column Without Refresh.
    How can i use onBlur="javascript:amtItems()" in collection.
    Thanks
    Manoj Kaushik
    Edited by: Manoj Kaushik on Mar 4, 2010 1:37 AM

    Hi,
    Call a PERFORM in ur form with 2 Using paramters (&RESBD-MENGE(C)&, &RESBD-GPREIS&) and use another changing parameter to get the value after multiplying above two. Define this PERFORM in driver program.
    Eg:
    In Script:
    DEFINE : &tot_value&
    PERFORM z_total_value IN PROGRAM z_cal_total USING &RESBD-MENGE& &RESBD-GPREIS&
                                        changing &tot_value&
    In Program z_cal_total:
    FORM z_total_value using in_tab structure itcsy
                               changing out_tab structure itcsy.
    data : lv_menge TYPE resbd-menge,
              lv_gpreis TYPE resbd-gpreis,
              lv_total TYPE resbd-menge.
    READ table in_tab with KEY name = 'RESBD-MENGE'.
    IF sy-subrc EQ 0
      lv_menge = in_tab-value.
    ENDIF.
    READ table in_tab with KEY name = 'RESBD-GPREIS'.
    IF sy-subrc EQ 0
      lv_gpreis = in_tab-value.
    ENDIF.
    READ table out_tab with KEY name = 'TOT_VLAUE'.
    IF sy-subrc EQ 0.
      lv_total = lv_menge * lv_gperis.
       out_tab-value = lv_total.
    MODIFY out_tab transporting fields value.
    ENDIF.
    ENDFORM.
    Hope it helps!!
    Rgds,
    Pavan

  • How can I make a column of sums out of a repeating pattern of 24 changing numbers

    How can I make a column of sums out of a repeating pattern of 24 changing numbers in Numbers.
    I have a long list of 8760 numbers of which I need to take the sum (and store in a column) of each 24 numbers.

    Here's one way. I've reduced the example, taking groups of five numbers from a set of 20. I've used 3 as the data number in all cases to make the sum easily recognizable.
    Original column of numbers in Data::column A.
    Data::B2 (and filled down): =QUOTIENT(ROW()+3,5)
    This adds 3 to the row number, then divides by 5, returning the quotient and ignoring the remainder.
    The result is a 'group number' for each group of five rows.
    Sums of each group are reported in the Sums table.
    Sums::A2 (and filled down): =ROW()-1
    Sums::B2 (anf filled down): =SUMIF(Data::$B,A2,Data::$A)
    For your example, assuming the 8760 numbers are listed in column A of a table named Data, starting at cell A2:
    Add a second column to the table (column B).
    In B2 enter the QUOTIENT formula above, with these two revisions:
    =QUOTIENT(ROW()+22,24)
    Fill down to all cells in the column.
    Provided you have named the first table "Data", both formulas in the Sums table will be as written above. You will need to extend the Sums table to 366 rows (including the Header row) to accommodate all 365 groups of 24.
    Regards,
    Barry
    PS: For details on the functions used, see the iWork Formulas and Functions User Guide. You can download the guide via the Help menu in Numbers '09.

  • How can I share two differents Itunes accounts in my Apple TV ? I have one and my wife has another account and we want to share both in our apple tv. How can I do this ???

    How can I share two differents Itunes accounts in my Apple TV ? I have one and my wife has another account and we want to share both in our apple tv. How can I do this ???

    I assume you have different iTunes collections on different PC's, or on different logins on the same PC?  If that's the case then just enable "Home Sharing" in each iTunes using the SAME iTunes username and password as you enabled home sharing on the Apple TV with. The account used for home sharing is NOT the same as the account used to access the iTunes store, so as long as you use the same account (pick one, doesn't matter which) then you should see both of yor iTunes libraries on the Apple TV. Note - each iTunes has ti be running in order for the Apple TV to see the library.
    Here's some details on how to do it:
    http://support.apple.com/kb/HT4363

  • How can I read a column of numbers saved as .txt and display as a wave?

    Hi Tiano
    LabVIEW General
    Ask:
    Please enter a one-line summary of your question
    Resources
    • Technical Support
    • Development Library
    • Measurement Encyclopedia
    "data/time reading into chart"
    "In the attached file, I am trying to read the first column of data, and the next column is the value on the x-axis I want it plotted at. How do I read two columns of different data? I have looked in the books I have access to and the help within Labview but am still having trouble.
    Thank you,
    Ellie"
    data_set (Plain Text, 3K)
    -posted by Ellie on 9/11/2001
    markwysong on 9/11/2001 answered:
    "Ellie,
    The first thing you need to do is to read your file in as a spreadsheet file. Then, you display it in a chart.
    That sounds simple, but looking at your dataset, there's a few things you should know. First, the "read from spreadsheet VI" is looking for data in columns, like your data set, but columns separated by tabs. Therefore, your data must be saved that way; currently, it doesn't seem that it is. Another thing; you must skip the header portion (labels) of your file when reading.
    Next, it would be easier if your time was first, and your data was second in your columns, but that can be overcome. In the VI I am including, I have copied your data set into a file called data.txt, and I've removed the header and separated the columns with a tab. Then, I read in the data, and I break out each column so I can put the time first, and then I combine them again into a cluster so it can be displayed on an XY chart.
    Take a look!
    Mark"
    Graph data from file (Binary Executable, 20K)
    data.txt (Plain Text, 3K)
    This answer has not yet been rated.
    Rate this answer:
    Mikael Garcia on 9/11/2001 answered:
    "Ellie,
    Here is one way of doing it. Take a look at this example (compatible with LabVIEW 4.1 and up) and post comments if you need further help. Basically, I read your file as text; split it; and make use of the Spread sheet string to Array function before I plot your data. Hope this helps./ Mikael"
    ExtractAndPlot.vi (Binary Executable, 36K)
    This answer has not yet been rated.
    Rate this answer:
    Ellie on 9/12/2001 commented:
    "Thank you. I am trying to get the data from the text file into a string and am having some trouble. I am reading the file from a spreadsheet, and sending the output array to "Array to Spreadsheet String", but I'm not sure this is what I want to do. Is there another way to make an array into a string? Do I need to reformat my data?
    Can you offer me any advice?
    Thank you."
    data_1 (Plain Text, 3K)
    Mikael Garcia on 9/12/2001 commented:
    "I noticed that you changed your file format according to what was said here. Yes, this new file of yours is easier to use but your original file does not have to be changed. Take a look at this example. I now added the file-read part. It will give you a dialog to locate your data file (use this VI with your original file with the header since this VI includes a string split function). Hope this helps. /Mikael"
    ReadExtractandPlot.vi (Binary Executable, 35K)
    Niko on 9/12/2001 answered:
    "If you read this file with the "read from spreadsheet file.vi" you get you
    data in a 2-D-array. Now it is easy with array- and cluster-functions to
    handle the data the way you want.
    hope that helps, Niko"
    This answer has not yet been rated.
    Rate this answer:
    I intend to read from a .txt file that contains a column of numbers. After reading I want to display it as a waveform. In fact the numbers represent points along a waveform/graph of Flow vs. time. Thus I want to have this info in the chart or graph with flow in the y0axis and time in the x-axis. Can someone give me some detailed help please? Thank you in advance.
    Attachments:
    The_file.txt ‏18 KB

    All you have to do is use Read From Spreadsheet File.vi that's on the File I/O palette. For your example .txt, set the Transpose input to true and wire the First Row output to a waveform graph. The only problem I see is that since your file doesn't contain any sampling info, the time axis will be relative. If have that information elsewhere, then you can put a build waveform function between the read and the graph. Wire the First Row output to the Y input Build Waveform and add t0 and dt values. I've attached an example.
    Attachments:
    Graph_from_text.vi ‏29 KB

  • How can I make two half page documents?

    I have a full page flyer.  I want to make it half page with two flyers.  I tried making two columns and cutting the page in half, but the borders are wrong.  How can I make two half page documents?

    You can do it with columns, just make the gutter twice the width of the outside margins.
    However being a Flyer why not just create one on the left using Textbooks and Shapes then group that and option shift drag it sideways to the right to make a copy on the right?
    Peter

  • How can we get Dynamic columns and data with RTF Templates in BI Publisher

    How can we get Dynamic columns and data with RTf Templates.
    My requirement is :
    create table xxinv_item_pei_taginfo(item_id number,
    Organization_id number,
    item varchar2(4000),
    record_type varchar2(4000),
    record_value CLOB,
    State varchar2(4000));
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'USES','fever','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'HOW TO USE','one tablet daily','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'SIDE EFFECTS','XYZ','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'DRUG INTERACTION','ABC','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'OVERDOSE','Go and see doctor','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'NOTES','Take after meal','TX');
    select * from xxinv_item_pei_taginfo;
    Item id Org Id Item Record_type Record_value State
    493991     224     1265-D30     USES     fever     TX
    493991     224     1265-D30     HOW TO USE     one tablet daily     TX
    493991     224     1265-D30     SIDE EFFECTS     XYZ     TX
    493991     224     1265-D30     DRUG INTERACTION     ABC     TX
    493991     224     1265-D30     OVERDOSE      Go and see doctor     TX
    493991     224     1265-D30     NOTES     Take after meal     TX
    Above is my data
    I have to fetch the record_type from a lookup where I can have any of the record type, sometime USES, HOW TO USE, SIDE EFFECTS and sometimes some other set of record types
    In my report I have to get these record typpes as field name dynamically whichever is available in that lookup and record values against them.
    its a BI Publisher report.
    please suggest

    if you have data in db then you can create xml with needed structure
    and so you can create bip report
    do you have errors or .... ?

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How can I have two itunes accounts on one computer?

    How can I have two itunes accounts on one computer?

    Not sure what you mean.
    An account is a user name and password.
    Sign into whichever account you want to use for purchasing.
    Authorize the computer for both account to listen to the content.

  • How can I combine two itunes accounts into one?

    How can I combine two itunes accounts into one?

    Items purchased from the iTunes Store are permanently associated with the account from which they were originally purchased.  Apple provides no way to change this.
    However, if you wish to put content from two accounts into a single iTunes library, you can easily do so.  Use the command File > Add File (or Folder) to Library.

Maybe you are looking for

  • Mixing ram pc2100 &pc3200

    My system currently has one stick of PC2100 RAM, 512MB. I would like to bring my system memory up to a gig of RAM, but I don't want to buy another stick of PC2100, cause it won't help me for future upgrades.  but i of course don't want to just get ri

  • Unable to install itunes error 7 and windows error 193

    I could not update my itunes. I have Windows 7. I got an error 7 and windows error 193. I followed itunes Microsoft.Net fix but it did not work. I get a message to reinstall. Itunes is successfully installed. But then there is a message that I need t

  • Smart 2-to-a-page printing, without huge borders. Possible?

    I just poseted this in the feedback box, but maybe I should ask here too... does anyone know of a way to do smart two-up printing in OS X? By smart I mean that I want to print just the text, with the borders trimmed off, so that the text doesn't beco

  • Custom object class attributes are not provisioning in oID thru OIM

    Hi, I have connected OIM with oID user provisioning is also taking place. I have made one custom structure class with some attributes in OID. In form designer,in OID usr form i have made feild UD_OID_USR_Custom In OId .config lookup i have mentioned

  • Olympus OMD e M1

    Can't seem to download a lot of pics from my new Olympus OMD M1. Some download others won't. Any thoughts? I am using the new MAC Yosemite OS which also makes LR behave weird at times, like dropping menus in the Develop module or the color brush not