Question on the value of an Upload item

Hi all,
I have an upload item (:P100_UPLOAD) with a Submit button. When I click on Submit I notice that the value of the upload item is different if access it from javascript or from PL/SQL process.
From javascript (using html_GetElement('P100_UPLOAD').value), it gives me : C:\Documents...\myfile
and from PL/SQL (:P100_UPLOAD) it returns something like F30011/myfile ...
Could someone explain me the difference ?
Thanks a lot,
Othman

Othman,
Whenever an ApEx page containing a File Browse... item is submitted, if a file has been selected it will be uploaded and stored in the wwv_flow_file_objects$ table (which is accessible via the APEX_APPLICATION_FILES) view. Part of this process includes giving the file a unique ID (such as "F542896243/myphoto.jpg") which is stored in the NAME column in this table. To enable you to then reference and find this file in the APEX_APPLICATION_FILES view, ApEx also sets the value of your File Browse... item in session state to be the same as this unique ID.
The value you get with javascript is the value that the HTML element itself has (i.e. the full local path to the file you selected.)
Hope that makes sense,
Andy

Similar Messages

  • How to get the value of a clicked item in a shuttle control

    I have a shuttle control (P8_SHUTTLE) that lists then names from scott.emp.
    Now I want to create a dynamic action that fires when I click on one of the names on the left side of the shuttle control.
    I want the dynamic action to recognize the name of the employee that was clicked, and then set the value of a text item (P8_LAST_VALUE) to that ename. (Eventually I want to display the department of that employee in the other text item).
    Here are screen shots of my DA:
    http://www.screencast.com/t/42klMC0Hbk
    http://www.screencast.com/t/Y5lZ4RsaLUI
    Currently, when I click an item in the shuttle control, the text item P8_LAST_VALUE remains blank.
    Thanks,
    Christoph

    Hi Christoph,
    you have to change your jQuery selector in the When section of the Dynamic action to #P8_SHUTTLE_LEFT.
    The shuttle item P8_SHUTTLE is build from to select lists P8_SHUTTLE_LEFT and P8_SHUTTLE_RIGHT.
    regards,
    Erik-jan

  • How to fetch the value of tabular form item in javascript

    Hello all
    I want to do some calculations on the value entered by the user in the textfield of a tabular form, how can I fetch the value of tabular form item in the javascript?
    I am using normal tabular form, not using apex_item tabular form.
    I can pass the current textfield value to the function using "this" as a parameter, but how can I fetch the value of other rows of that same column?
    Thanks
    Tauceef

    Hi Alistair
    jQuery is still not working, but I got it done through some other means, this is the code:
    function total(pThis){
    var l_Row = html_CascadeUpTill(pThis,'TR');
    var l_Table = l_Row.parentNode;
    var l_Row_next = l_Row;
    var n_rows = l_Table.rows;
    var lInputs;
    var v1;
    var sum = 0.0;
    var temp;
    var i = 0;
    var j = 0;
    //alert(n_rows.length);
    while(j < (n_rows.length - 1))
    temp = 0;
    if(l_Row_next != null){
    lInputs = html_Return_Form_Items(l_Row_next,'TEXT');
    v1 = lInputs[0].value;
    //alert(v1);
    sum = parseFloat(sum) + parseFloat(v1);
    l_Row_next = l_Row_next.nextSibling;
    temp = 1;
    if(temp == 0){
    l_Row_next = l_Table.getElementsByTagName('TR')[1];
    lInputs = html_Return_Form_Items(l_Row_next,'TEXT');
    v1 = lInputs[0].value;
    sum = parseFloat(sum) + parseFloat(v1);
    l_Row_next = l_Row_next.nextSibling;
    j= j+1;
    $x('P78_TOTAL').value= parseFloat(sum);
    I am calling this function onblur event of the textfield.
    Still I am having one problem, I want to perform this calculation on load of the page also, how can I do that? because while calling onblur of the textfield I can pass that textfield to this function but on onLoad how I will pass the textfield to call this function so that I will be able to get the textfield value in the function?
    there may be some rows already existing, so I want the total of the existing rows to be displayed in my P78_TOTAL textfield that is why I need to do this calculation on onLoad of the page.
    Thanks
    Tauceef
    Edited by: Tauceef on Jul 8, 2010 4:57 AM

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • Is there a way to enable/disable a tabular form item based on the value of a second item?

    Hi Everyone,
    I have a tabular form based on a collection.   The column c050(maps to f30) will be either Y/N.  If it is Y, then I would like to enable column c024( maps to f24) (which happens to be a radio button based on lov).  If the value of c050 = N, then disable c024.   There are potentially many rows, and the item c024 would only be enable/disabled for the specific row.   So if row 1 has c050=Y and row 2 has C050=N then row 1 c024 is enabled, and row 2 c024 is disabled.  Hope that makes sense.
    I have created a dynamic action called enable/disable HMS fields.
    event=CHANGE
    selection type = jquery selector
    jquery selector = input[name='f30']
    condition EQUAL TO
    value Y
    true action1 - enable, jquery selector, input[name='f24']
    true action 2 - alert, You have added an HMS Species.   There may be additional data to enter.  thanks
    false action1 - disable jquery selector, input[name='f24']
    false action2 - alert, no hms worries.
    The alerts in both cases show properly...but nothing seems to happen to f24.....what am I doing wrong?
    thanks

    Agh! This is the first time you mention this is a radio button!  That changes things a lot! As you can see, the format is different (f24_0001_0001) than what we have discussed (f24_0001).
    Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your original selectors on input were working I just thought these were text fields or something like that.
    How about you change it to a drop down list just so that you can see all work?  And fully understand it.
    Then you can work out the radio button option.
    If that doesn't get you there... I'm going to ask you setup an example in apex.oracle.com and give me credentials to log in and take a look.
    I could re-try the js on my side with a radio but it will take some time.
    So just to be clear... f30 is a drop down and f24 is a radio?
    See, this line:
    $x_disableItem("f24_" + row, true);
    Is NEVER going to find the radio buttons because it's missing the 3rd 0001 and 0002 (how many options do you have?)
    So perhaps you try it like this:
    $x_disableItem("f24_" + row + '_0001', true);
    $x_disableItem("f24_" + row + '_0002', true);
    ... keep going for the options...
    Do the same for the false of course.
    But I think this needs a better approach if you'll have radio buttons.  I just need to work it out.
    Ok, go try things...
    Thanks
    -Jorge

  • To get the value of Dynamically generated Items

    Hi , i am Writting an applications using HTMLDB, i have a page which is an input page for inputting number of hours you worked on different projects i am createing the Input text filed items dynamically through web PL/SQL , what i want to do is when the user click on the sumbit button i want to read the values of the ITem and insert into a table , since they are dynamically created Items how does HTML DB handle them is there a way to get the Value for the items i tried displaying &P9_1. which is one of the items created dynamicaly but empty value is displayed.
    Any assiatnce is of great help.
    Thanks in advance
    Bharath

    This is done once the page is submitted, and the values are available in the arrays e.g. htmldb_application.g_f01 etc.
    This is covered in the manual

  • How do I get the value of a comboBox item that is in a grid?

    Hi all,
    I have a data grid that has comboBoxes in two of its columns.
    What I need to do is get the values of those bombo boxes when a user highlights the row of the grid NOT when the user uses the comboBox. I understand how to pull the values out once the change handler is invoked on the comboBox, but I'm not seeing a way to get at the comboBoxes that belong to the currently highlighted gridRow.
    I'm sure it's really straight forward, but I'm just not able to find any reference on how it's done. Any help greatly appreciated.

    This code shows how you can do it if you know the dataProvider fields for the ComboBox data.
    If this post answered your question or helped, please mark it as such.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
       initialize="initData()">
       <mx:Script>
       <![CDATA[
        import mx.events.ListEvent;
          import mx.collections.*;
          private var DGArray:Array = [
             {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, combo1: [1,2,3], combo2: [100,200,300]},
             {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, combo1: [2,4,6], combo2: [200,400,600]}];
          [Bindable] public var initDG:ArrayCollection;
          public function initData():void {
             initDG=new ArrayCollection(DGArray);
          private function dgChangeHandler(event:ListEvent):void{
           var ac:ArrayCollection = event.currentTarget.dataProvider;
           txt.text = "";
           txt.text += ac.getItemAt(event.rowIndex).combo1 + "\n";
           txt.text += ac.getItemAt(event.rowIndex).combo2;
       ]]>
       </mx:Script>
       <mx:DataGrid id="myGrid" width="350" height="200"
          dataProvider="{initDG}" change="dgChangeHandler(event);">
          <mx:columns>
             <mx:DataGridColumn dataField="Artist" />
             <mx:DataGridColumn dataField="Album" />
             <mx:DataGridColumn dataField="Price" />
             <mx:DataGridColumn dataField="combo1">
              <mx:itemRenderer>
               <mx:Component>
                <mx:VBox>
                 <mx:ComboBox dataProvider="{data.combo1}"/>
                </mx:VBox>
               </mx:Component>
              </mx:itemRenderer>
             </mx:DataGridColumn>
             <mx:DataGridColumn dataField="combo1">
              <mx:itemRenderer>
               <mx:Component>
                <mx:VBox>
                 <mx:ComboBox dataProvider="{data.combo2}"/>
                </mx:VBox>
               </mx:Component>
              </mx:itemRenderer>
             </mx:DataGridColumn>
          </mx:columns>
       </mx:DataGrid>
       <mx:TextArea id="txt" width="100%" height="100%"/>
    </mx:Application>

  • Urgent: Defaulting the value for a Lov item

    Hello,
    I have a lov item mapped to it's corersponding VO. I need to default it to certain value, but keep on getting the error with prompt to select a valid value, even though there is only one value being returned on searching.
    The settings:
    "Disable Validation" set to false.
    I am executing the VO in processRequest so that it returns only one value, and then setting the Lov item with this value - using settext and setvalue.
    Is there any other way to maually set the value of the item and retain the validation property?
    Thanks!
    Shama

    The DFF fields that are being fetched vary according to the context being passed from the lov, hence making it difficult to maually handle the bean setting. Any idea of any work around?
    Thanks!
    Shama

  • How can I receive the value of a selected item in the backing bean

    I have a table in a jspx file.
    When I go to the detail page I want to do something with the value of the currentrow.
    I want do a calculaction of the value of ClbId.
    How can I receive the value of the selected ClbId in my backing bean
    <af:table value="#{bindings.Searchteamlist.collectionModel}"
    var="row" rows="#{bindings.Searchteamlist.rangeSize}"
    first="#{bindings.Searchteamlist.rangeStart}"
    emptyText="#{bindings.Searchteamlist.viewable ? 'No rows yet.' : 'Access Denied.'}"
    selectionState="#{bindings.Searchteamlist.collectionModel.selectedRow}"
    selectionListener="#{bindings.Searchteamlist.collectionModel.makeCurrent}"
    rendered="#{backing_FirstFlag_Club_Club.searchFirstTimeClub_Club_AdresAndereClubs == false}">
    <af:column sortProperty="Matricule" sortable="true"
    headerText="#{bindings.Searchteamlist.labels.Matricule}">
    <af:outputText value="#{row.Matricule}"/>
    </af:column>
    <af:column sortProperty="ClbId" sortable="true"
    headerText="#{bindings.Searchteamlist.labels.ClbId}">
    <af:outputText value="#{row.ClbId}">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.Searchteamlist.formats.ClbId}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Nom" sortable="true"
    headerText="#{bindings.Searchteamlist.labels.Nom}">
    <af:outputText value="#{row.Nom}"/>
    </af:column>
    <f:facet name="selection">
    <af:tableSelectOne text="Select and">
    <af:commandButton text="Submit"
    action="club_AdresAndereClubsDetail">
    <af:setActionListener from="#{row}"
    to="#{processScope.row}"/>
    </af:commandButton>
    </af:tableSelectOne>
    </f:facet>
    </af:table>

    hi tde
    Using an Expression Language helper class like this one from Steve Muench ...
    http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
    ... you could write something like this in your backing bean:
    Integer vClbId = (Integer)EL.get("#{row.ClbId}");(Make sure to cast it to the correct type.)
    success
    Jan Vervecken

  • Setting the value of an Application Item (setting a global variable);

    In APEX 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable for testing to see if anything on the page has changed. Will update to 1 when certain select lists on the page are changed. Have read through some similar questions and replies within the forum as well as other blogs and sites. So, I believe what I am doing is the way to go about this. Unfortunately, my initialization of an application item/global isn't happening yet. here's a rundown of what has been implemented:
    1) created an application item, G_CLASSIFICATION_ID_NEW in the shared components;
    2) created Javascript (JS) function called by addLoadEvent in the page html header region so when the page loads, the G_CLASSIFICATION_ID_NEW global/application item should get set to 0 with the following JS and using AJAX and htmldb_GET:
    <script type="text/javascript">
    function initVars()
    alert("before get initvars");
    var get = new htmldb_Get(null,$x('pFlowId').value,null,22);
    get.add('G_CLASSIFICATION_ID_NEW', 0);
    gReturn = get.get();
    if(gReturn){
    alert(gReturn.value);
    get = null;
    alert("after get initvars");
    alert("before call to initpage");
    addLoadEvent(initVars());
    </script>
    I've used the htmldb_Get with success for populating other global variables and running On Demand Processes with onchange JS calls in the html form element attributes within select lists on the page. Afterwards, I can check the globals via the Session window and searching on Application Items. Unfortunately, I'm missing something because my G_CLASSIFICATION_ID_NEW never gets populated when I load the page. The alerts all popup when the page is loaded, so I know the script is being executed when the page loads. the alert(gReturn.value) comes back undefined. And, needless to say, the G_CLASSIFICATION_ID_NEW to 0 is not occurring.
    I've tried the htmldb_Get with it calling an application process and without (set to null). From what I've read, you shouldn't need to call an on demand process to have the get.add set the global variable. Then again, this could be where I'm going wrong. however, as I've mentioned, this works for other functions called from an onchange to populate an application item, but the page has already loaded when the onchange(s) get executed. They may work because the page is already loaded when the onchange is called. My point here is that my other On demand processes are NOT setting or changing the global variables at all. The globals are getting set with the get.add(<app item>, <value>) portion of my other JS functions within the HTML Header region. So, I'm inclined to believe that I don't need the 'application_process=<some_odp>' parameter set, but if that's not true, please let me know. if so, what would need to be in the on demand process--ie, what would be the purpose of the get.add(<application item>, <value>) if I set the global variable in the on demand process because that's the only thing I could think of doing within an on demand process for this?
    If somebody can point out what I'm not understanding or failing to do here, that would be great. I'm doing fine with APEX, but wouldn't consider myself a guru with it just yet. I'm definitely not a JS/AJAX guru, and when things like this go astray, I get bogged down because I'm not sure of the problem. So, I'm hoping you gurus who monitor this forum can get me going in the right direction.
    thanks,
    bob

    Hi Jari,
    Does that javascript work if you place it some of region footer on page 22 ?Yes. I cut it out of the html header of the page, and put it in the footer of the first region on the page. It initializes the variable. Putting it into the footer of the first region on the page should work for me instead of having an extra region on the page that's being picked up from page 0.
    Is your page 22 authentication public ?No. This particular page is set for an ADMINISTRATOR only. That said, I am logged in as an administrator. So, I cannot see why setting authentication should make a difference as long as I have that authentication/authorization. Also, there will be other pages where I want to use this script or a similar script, but again, those pages will not be open to the public. the authentication will be "role" based where a user will not necessarily have to be an administrator, but they will have to have a certain role to access the page. Is there a known problem or something that precludes a html header JS script from doing an addloadevent when authentication is NOT public?
    thank you,
    bob

  • After hiding an item, its value cannot be used in a query. How to use the value of a hidden item.

    Hi,
    I have a shuttle. I am using its value in a query by using sql collection array. My requirement is that I need to hide that shuttle. But when I hide the shuttle, its value is not retrived by the query.
    Please give some idea how to get this functionality.
    Thanks,
    chandru

    ChandraBhanu wrote:
    Its a shuttle. so how to create an application item of shuttle type?
    pls give some idea.
    You don't create an application item of shuttle type.  Application items only hold one value, and I thought since you were using a value in a query that you were only using one.  In the case of multiple values my idea to use a page/application item will not work

  • How to return the values of LOV to items in forms

    Hi,
    I have created an LOV based on a select statment that return 3 columns
    I want to return theses 3 values to 3 items in the form?
    I'll appreciate any suggestion.
    Imad.

    An LOV has only two components: text and value. You can see them in the html page's source. A work around is to use a procedure to query the data and create a cursor, count the # of records in the query. Create a javascript function to create parallel arrays to hold the data on the html page and pass the function parameters via an event on the page. Create the procedure in the db.
    procedure follows...
    CURSOR c_customer
    /* use a cursor to get all the prices */
    IS
    SELECT
    c.customer_number, c.customer_name, NVL(a.address1, 'N/A') ADDRESS1,
    NVL(a.address2, 'N/A') ADDRESS2, NVL(a.city, 'N/A') CITY, NVL(a.state, 'N/A') STATE,
    NVL(a.province, 'N/A') PROVINCE, NVL(a.country, 'N/A') COUNTRY, NVL(a.postal_code, 'N/A') POSTAL_CODE
    FROM table1 b, table2 a, table3 c;
    v_count NUMBER;
    BEGIN
    SELECT COUNT(*)
    INTO v_count
    FROM table1 b, table2 a, table3 c
    where ...;
    /*where clause and table names have been removed, use your's. They should be identical in both queries */
    /* begin your Javascript, substituting values from the
    cursor as necessary into parallel arrays*/
    HTP.p('<script language="JavaScript1.1">');
    HTP.p('<!-- ');
    /* initialize the arrays */
    HTP.p(' var customer_no_arr = new Array('||v_count||'); ');
    HTP.p(' var customer_name_arr = new Array('||v_count||'); ');
    HTP.p(' var address1_arr = new Array('||v_count||'); ');
    HTP.p(' var address2_arr = new Array('||v_count||'); ');
    HTP.p(' var city_arr = new Array('||v_count||'); ');
    HTP.p(' var state_arr = new Array('||v_count||'); ');
    HTP.p(' var province_arr = new Array('||v_count||'); ');
    HTP.p(' var country_arr = new Array('||v_count||'); ');
    HTP.p(' var postal_code_arr = new Array('||v_count||'); ');
    /* populate the arrays */
    FOR r IN c_customer LOOP
    HTP.p ('customer_no_arr['||to_char(c_customer%ROWCOUNT - 1) ||'] = "'||r.customer_number||'";');
    HTP.p('customer_name_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.customer_name||'";' );
    HTP.p('address1_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.address1||'";' );
    HTP.p('address2_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.address2||'";' );
    HTP.p('city_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.city||'";' );
    HTP.p('state_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.state||'";' );
    HTP.p('province_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.province||'";' );
    HTP.p('country_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.country||'";' );
    HTP.p('postal_code_arr['||to_char(c_customer%ROWCOUNT - 1)||'] = "'||r.postal_code||'";' );
    END LOOP;
    /* use this variable to determine the size of the array */
    HTP.p ('var num_customers = '||v_count);
    /* create the function--accept a parameter that tells
    you which customer has been selected from the select_co
    combo box */
    HTP.p ('function get_customer (form, field, customer_num)
    var pieces = field.split(".");
    var address1field = new String(pieces[0] + ".MASTER_BLOCK.ADDRESS1.01");
    var address2field = new String(pieces[0] + ".MASTER_BLOCK.ADDRESS2.01");
    var cityfield = new String(pieces[0] + ".MASTER_BLOCK.CITY.01");
    var statefield = new String(pieces[0] + ".MASTER_BLOCK.STATE.01");
    var provincefield = new String(pieces[0] + ".MASTER_BLOCK.PROVINCE.01");
    var countryfield = new String(pieces[0] + ".MASTER_BLOCK.COUNTRY.01");
    var zipcodefield = new String(pieces[0] + ".MASTER_BLOCK.POSTAL_CODE.01");
    /* Get the customer number and pass it to the array to look up the address.*/
    var customer_no = customer_num;
    /* loop through the array until you find the right product ID */
    for (var i=0 ; i < num_customers; i++)
    if (customer_no_arr[i] == customer_no)
    /* return the correct customer information */
    form.elements[eval(address1field)].value = address1_arr;
    form.elements[eval(address2field)].value = address2_arr[i];
    form.elements[eval(cityfield)].value = city_arr[i];
    form.elements[eval(statefield)].value = state_arr[i];
    form.elements[eval(provincefield)].value = province_arr[i];
    form.elements[eval(countryfield)].value = country_arr[i];
    form.elements[eval(zipcodefield)].value = postal_code_arr[i];
    /* close out the Javascript */
    HTP.p ('//-->');
    HTP.p ('</SCRIPT>');
    END gen_customerlookup;
    A specific example is found in the ORACLE Press book by Steve Vandiver & Kelly Cox "ORACLE9i Application Server Portal Handbook" ISBN # 0-07-222249-2 pages 358 - 361. Several lines, and better explaination than room for here.
    get_customer (this.form, this.name, this.value); is placed in the appropriate event. Put "sales.gen_customer_lookup;" in the "before displaying the page" section. sales is the schema where the procedure gen_customer_lookup is created.
    Ken

  • Questions about the new add folder/add item api functions ...

    I have a few questions about using the wwsbr_api.add_folder and wwsbr_api.add_item functions for 3.0.8.
    1. How do I retrieve the parent_id for the current folder or if I am running a batch add folder?
    2. How do I set a folder style other than the parent folder's?
    Any help would be appreciated.
    Bethany

    Bethany,
    This post is best suited to the Oracle9iAS Portal Content Areas forum.
    Thanks

  • Newbie question about the Zen Vision M, uploading D

    If I want to put one of my DVD movies on the Zen, is this easy to do? How long does it take?

    I'm afraid we cannot allow discussion on how to rip/copy protected DVDs.
    I'll leave this thread open for now in case anyone has other (legal) information to add, but any information on ripping protected will be removed.
    Cat

  • The value of data_block item can be stored in a variable?

    Hi all I have master and detail form
    i need to insert data by scanning the barcode
    and i need to select a form_item dynamically please guide how
    problum desc:-
    My Table desc is like this
    SQL> desc gin_detail1;
    Name                                      Null?    Type
    ID                                                 NUMBER
    SALE_ORDER_ID                                      VARCHAR2(150)
    PROD_ID                                            VARCHAR2(20)
    PROD_NAME                                          VARCHAR2(100)
    COLOR                                              VARCHAR2(20)
    XS                                                 NUMBER
    S                                                  NUMBER
    M                                                  NUMBER
    L                                                  NUMBER
    XL                                                 NUMBER
    PCS                                                NUMBER
    IF    :gin_detail1.barcode = a THEN
    SELECT SALE_ORDER_NO,prod_id,style,color,1 INTO
           :gin_detail1.sale_order_id,:gin_detail1.prod_id,
    :gin_detail1.prod_name,:gin_detail1.color,:gin_detail1.XS from sale_order_barcode1 where barcode=:gin_detail1.barcode;
    end if;i need to change the :gin_detail1.xs dynamically as per barcode
    If BARCODE is 241040713BLACKS then :gin_detail1.XS
    if BARCODE is 241040597BLACKL then :gin_detail1.L
    like these for all the fields
    Please Guide
    Thanks ANd Regards
    Vikas

    Hi Vikas
    i need to select a form_item dynamically u can't
    But u can only assign the value of a form item into a variable then do what ever u want with it...
    if i do recognize ur problem right then use the following..
    > v_value := :form_item;
    what error r u getting from the following select statment ?
    the assign statment should equal the number of the variables or menu items ur trying to assign & MATCH IT as follows
    IF    :gin_detail1.barcode = a THEN
    SELECT SALE_ORDER_NO  ,prod_id,  style,  color,  XS                                                
    INTO  :gin_detail1.sale_order_id,  :gin_detail1.prod_id,  :gin_detail1.prod_name,  :gin_detail1.color,  :gin_detail1.XS
    FROM sale_order_barcode1 where barcode=:gin_detail1.barcode;
    END IF ;so u missed
    XS into :XS besides why u select the value 1 & insert it into :XS ?
    XS
    need to change the :gin_detail1.xs dynamically as per barcode
    If BARCODE is 241040713BLACKS then :gin_detail1.XS
    if BARCODE is 241040597BLACKL then :gin_detail1.L
    like these for all the fields
    DECLARE
    v_result1    NUMBER ;
    v_result2     NUMBER ;
    BEGIN
    If  :gin_detail1.BARCODE = 241040713BLACKS THEN
    v_result1 := :gin_detail1.XS ;
    elsif :gin_detail1.BARCODE is 241040597BLACKL THEN
    v_result2  :=  :gin_detail1.L;
    and so on...
    END;
    Note : u have 2 compare & assign in the if statment within the same datatype otherwise u have to use to_char() or whatever...
    Hope i could get ur point & could my answer help u ...
    otherwise pls send the error u r getting and re-state the problem u mean exactly.
    Regards,
    Abdetu...
    Edited by: Abdetu on Jan 17, 2011 5:13 AM

Maybe you are looking for

  • New Macbook Pro Wont turn after discharge

    Hello everyone, I just purchased my 3rd mac in the past 2 years, yeah that's how hooked I am, now windows free 99% and love it... My brand new macbook pro has a very annoying issue.. if I use it on battery power and it discharges completely I have to

  • Error while uploading/View the document in sharepooint server

    Dear All, I have integrated P68.1 with sharepoint server for document repository and I am facing error while viewing/checkout document from sharepoint server. Here below is the error captured from p6webaccess.html, please sort out this issue . com.pr

  • Another 13" vs 15" MacBook Pro Thread

    I'll try to make this as short and simple as possible so as not to tire anyone. So I'm planning on buying a new MacBook Pro very soon and I've been shopping around the past few days trying to collect all the info I can about this machine to help me d

  • OS Migration + EHP7 Upgrade

    Dear Experts, We are planning to perform the OS migration along with EHP7 upgrade. Please find the source and target details below. Source OS: HP-UX 11.23 DB: Oracle 10 SAP: R/34.7 Target OS: SUSE Linux 11 DB: Oracle 11 SAP: SAP ECC6 EHP7 Best Approa

  • Two letter-keys suddenly behaving strange

    Please help! i've looked all over the web, but cannot seem to find anyone with the similar problem. Ok, here's the dealio: Two months ago I bought a used mid-2011 Macbook Air (13" / 4gb /128 gb) for my girlfriend. Everything has worked fine and we/sh