CALLING the LOV PROGRAMETICALLY

Dear Friend
I want to rest the show_lov ,because it always shows only the first lov , it goes to the second if statement but it shows only the first lov that is 'MACHINES_GRAN' and it does not show the second lov 'MACHINE_REB'
My script as the following it is set to the key_listval in the field trigger.
BEGIN
IF :ISSUE_MACHINE_DETAILS.D_ITEM_CODE='3911500001' THEN
SET_ITEM_PROPERTY('ISSUE_MACHINE_DETAILS.D_MACH_CODE',LOV_NAME,'MACHINES_GRAN');
DECLARE
a_value_chosen BOOLEAN;
BEGIN
a_value_chosen := show_lov('MACHINES_GRAN');
END;     
END IF;     
IF :ISSUE_MACHINE_DETAILS.D_ITEM_CODE ='3101670001' OR :ISSUE_MACHINE_DETAILS.D_ITEM_CODE ='3101690001' THEN
SET_ITEM_PROPERTY('ISSUE_MACHINE_DETAILS.D_MACH_CODE',LOV_NAME,'MACHINE_REB');
DECLARE
b_value_chosen BOOLEAN;
BEGIN
b_value_chosen := show_lov('MACHINE_REB');
END;     
END IF;
END;

Dear Friend
I make this change to my script, and it works fine
DECLARE
lov_id LOV;
BEGIN
IF :ISSUE_MACHINE_DETAILS.D_ITEM_CODE='3911500001' THEN
DECLARE
a_value_chosen BOOLEAN;
BEGIN
lov_id := Find_LOV('MACHINE_GRAN');
IF Get_LOV_Property(lov_id,GROUP_NAME) = 'MACHINE_REBO' THEN
Set_LOV_Property(lov_id,GROUP_NAME,'GRANULATOR');
SET_ITEM_PROPERTY('ISSUE_MACHINE_DETAILS.D_MACH_CODE',LOV_NAME,'MACHINE_GRAN');
a_value_chosen := show_lov('MACHINE_GRAN');
ELSE
     SET_ITEM_PROPERTY('ISSUE_MACHINE_DETAILS.D_MACH_CODE',LOV_NAME,'MACHINE_GRAN');
     a_value_chosen := show_lov('MACHINE_GRAN');
END IF;      
END;     
ELSIF :ISSUE_MACHINE_DETAILS.D_ITEM_CODE ='3101670001' OR :ISSUE_MACHINE_DETAILS.D_ITEM_CODE ='3101690001' THEN
DECLARE
b_value_chosen BOOLEAN;
BEGIN
     lov_id := Find_LOV('MACHINE_REBO');
     IF Get_LOV_Property(lov_id,GROUP_NAME) = 'GRANULATOR' THEN
     Set_LOV_Property(lov_id,GROUP_NAME,'REBONDING');
     SET_ITEM_PROPERTY('ISSUE_MACHINE_DETAILS.D_MACH_CODE',LOV_NAME,'MACHINE_REBO');
     b_value_chosen := show_lov('MACHINE_REBO');
     ELSE
     SET_ITEM_PROPERTY('ISSUE_MACHINE_DETAILS.D_MACH_CODE',LOV_NAME,'MACHINE_REBO');
     b_value_chosen := show_lov('MACHINE_REBO');
     END IF;
     END;     
END IF;
END;
Thank you very much for your help
Best regards
Jamil Alshaibani

Similar Messages

  • Found an iPad mini in a parking lot; would love to return it to the owner. Called the local police and they said there is very little that they could do. Suggestions?

    Found and iPad mini in a parking lot; would love to return it to the owner. I called the local police; they said there was very little they could do. suggestions?

    Leave it turned on, and (if possible) connected to the Internet. The owner may try to find it using Find my iPad.
    Also, make a note of the serial number off the back, then advertise it as found, and make sure anyone claiming it can tell you the correct serial number.

  • Elements are not listed in the LOV of element entry window

    hi friends,
    i tried running payroll for uae legislation in test instance.when i tried to attache the element in the elemnt entry screen,i m getting an error ,"query caused no records to be retrieved". Below i have mentioned the step by step activities i done,
    1. BG Creation.
    2. System Profiles.
    3. Element basic Salary created.
    4. Slary BAsis created and linked the element.
    5. Payroll Description ceated(As its trial in vision instance i have not created payment methods).
    6.element link created to the element, linked to payroll and salarybasis.
    (The above setups were created as on date 01jan2005 as date tracked)
    7. employee created.
    8. assignment details updated(payroll, salarybasis attached) based on daj as 01jan2009.
    9. I tied linking the element to the employee via element entry.
    when i tried that i am getting that error as,"query caused no records to be retrieved".
    i have not created a LE and not linked the stauaary informations in assignment screen.
    Please share me your valuable suggestions to overcome this issues.
    Note: As its vision i had run International HRMS setup conc program before creating elements, because when i tried creation of elements , i did not get the LOV for element classifications, only one list balance initialaisation was there, after running that concurrremt request,. that list has been eneblen, please share me your ideaws.
    Regards
    Raj Narayanan

    hi experts,
    now i have included both the variables in one text element..
    ...in a loop i m using ...              PERFORM write_form USING 'SERIAL_NO' 'SRN_NO'.
    now the issue is if in a table i have two items ...then loop will run two times....and the form will be called twice....
    thats how it works usually....
    but in my case only the last record is displaying .....first record is ...i think is overwitten by the 2nd record........dont know .....
    please help me out......
    thnx
    RK

  • Creating a where clause in the LOV query box

    Hi guys is any able to help me with this one
    i have a page in my app where there is a LOV drop down now the values for this drop down comes from a table that looks like this
    users_for _form_TBL
    E_MAIL
    Vendor
    [email protected]
    oracle
    [email protected]
    sap
    [email protected]
    IBM
    [email protected]
    Oracle
    [email protected]
    intergraph
    So my syntax for the LOV i mentioned looks like this
    select VENDOR as display_value, VENDOR as return_value
      from form_user_tab where E_MAIL = :APP_USER
    order by 1 ;
    so if [email protected] logs onto the app and has to make a selection on the LOV it would only display the vendors relative to his E_MAIL like oracle ,sap, IBM then he hits the submit button on the page then the vendor that he selected is inserted into another table .What i did on the insert table was create a trigger that after a vendor is inserted the trigger inserts a 1 into a column called assessed .
    What i did after this was add a select in the where clause of the LOV so that it would check in the insert table if that vendor had been chosen before and not display it again to be selected  my syntax the second time around in the SQL query box was
    select VENDOR as display_value, VENDOR as return_value
      from users_for _form_TBL where E_MAIL = :APP_USER
    and (select 'vendor' , 'ASSESSD' from inserted _tbl_imp is null);
    order by 1 ;
    But im getting an error any ideas guys .Thank you

    Hay man thanks for that info on the Tom Kyte Blog 
    --(the code you gave me )
    select 
        u.vendor display_value 
      , u.vendor return_value
    from 
        users_for_form_tbl u 
    where 
        u.e_mail = :app_user 
    and not exists (select null from inserted_tbl_imp i where u.vendor = i.vendor) 
    order by 
        u.vendor 
    --(After the error i tried )Then when i got the error i try'd using 'or exists'  like this
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select null from inserted_tbl_imp i where u.vendor = i.vendor) 
                          or exists (select null from inserted_tbl_imp i where u.vendor = i.vendor)
    order by 
        u.vendor 
    But the all the vendors that where in the  same in the insert table came up in the drop down list  example is oracle was assessed before then only oracle would appear in the drop down list  and if it was assessed 3 times it would come up 3 times
    --Then i tried to select where 'Assessed' is null   ('Assessed' is a column in the insert table  which i created a trigger on to insert 1 in the 'ASSESSED' column  when a vendor is begin assessed  )  
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select 'ASSESSED' from inserted_tbl_imp i where 'ASSESSED' is null ) 
    order by 
        u.vendor 
    This try didnt return any vendors at all
    --Then i tried distinct
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select distinct 'VENDOR',  from inserted_tbl_imp i where u.vendor = i.vendor) 
    order by 
        u.vendor 
    This gave me a LOV ERROR
    This is what i have tried so far there where others syntax's i tried last night as well  but most of them came back as errors . Thanks again for you time and help  fac586  

  • How to Handle the LOV AM in the page level Controller

    Hi All,
    I have standard page ,In that page there is LOV in which user can select any value.
    But the client requirement is the value in the lov has to be displayed has to be displayed automatically the first record of the LOVwhen page is rendered.
    For that i am trying to handle the Lov AM in the extended controller by using
    OAApplicationModule rootAM = pageContext.getRootApplicationModule();
    OAApplicationModule childAM1=(OAApplicationModule)rootAM.findApplicationModule("CsfPoLovAM");
    Here CsfPoLovAM is the AM of the LOV
    when i am doing this i am getting the value of childAM1 as null.
    Could you please let me know is there any other way of handling the AM of lov on the extended controller
    And there is controller is defined for the LOV .
    Thanks
    Ajay

    If there is no CO than you can put a new custom controller in the LOVRN ,in the PR method of new controller get the VO and call the firs() method of this VO like
    LOVVO.first() ;this will full fill your requirement .
    HI Pratap,
    I had created a new custom controller in the LOVRN and in the Process Request.of the controller i am getting the first record.
    like follows
    OAViewObjectImpl vo=(OAViewObjectImpl)am.findViewObject("CsfInstallLotNumberVO1");
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","vo:"+vo,4);
    if(vo!=null)
    vo.executeQuery();
    Row row=vo.first();
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","row:"+row,4);
    if(row!=null){
    String lotnumber=(String)row.getAttribute("LotNumber");
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","lotnumber:"+lotnumber,4);
    oapagecontext.putSessionValue("LotNumberParam",lotnumber);
    i am able to get this lov value in the lov window when the lov item is clicked
    and i am trying to handle that value in my exteded co its getting that value
    Thanks
    Ajay

  • How to set the default value to the lov item

    Dear alll
    i have creation page in that two items are there those are lov's
    i am calling that creation page from another page
    i like this code to set the lov's
    OAMessageLovInputBean comp =
    (OAMessageLovInputBean)webBean.findChildRecursive("Company"); //grab the item
    comp.setValue(pageContext,companyname);
    when i set like
    when i am saving the records again it is showing error "please select a valid value"
    Regards
    Sreekanth

    Hi Pratap,
    I have tried the following code to set default value in OAMessageLovInputBean while loading the page but its not working.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String delToLoc = (String)pageContext.getSessionValue("deliverTOLoc");
    Number delToLocId = (Number)pageContext.getSessionValue("deliverToLocId");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject poHeadervo =
    (OAViewObject)am.findViewObject("PoHeaderMergeVO");
    PoHeaderMergeVORowImpl poHeaderVoRow =
    (PoHeaderMergeVORowImpl)poHeadervo.getCurrentRow();
    if (delToLoc != null && !"".equals(delToLoc)) {
    // poHeaderVoRow.setShipToLocation(delToLoc);
    OAMessageLovInputBean msb = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("DefaultShipToLocation");
    msb.setValue(pageContext,delToLoc );
    Please suggest me how to resolve this issue.
    Thanks & Regards,
    Sunita

  • Oracle Apps Custom Form, How to Filter data in the LOV

    Detail Data Block I am Calling One LOV, Based on Master Block Item I want to filter data in the LOV.
    in the select statement
    SELECT * FROM MTL_SYSTEM_ITEMS WHERE
    ORGANIZATION_ID = :BLOCK_NAME.FIELD_NAME
    specified
    but it is showing no data found error.

    Do this:
    MESSAGE(:BLOCK_NAME.FIELD_NAME);
    MESSAGE(:BLOCK_NAME.FIELD_NAME);
    SELECT * FROM MTL_SYSTEM_ITEMS WHERE
    ORGANIZATION_ID = :BLOCK_NAME.FIELD_NAME
    This will tell you the value of BLOCK_NAME.FIELD_NAME
    Then use PLSQL and run the query using the value of BLOCK_NAME.FIELD_NAME
    and see if you get data. If you don't get data using PLSQL, then you won't get data using LOV.

  • How to call the Reset of af:query in a backing bean .

    Hi, Could some one help me to call the Reset function of af;query by a backing bean. Since i need to refresh the LOV's in the search panel, i need to call the reset operation in the custom code. . thanks.

    Here is the test case Frank.
    I'm having a af:query component and search fields are populated by choice-list LOV .... The VO populating the lov attribute is , is set with auto refresh . In case of new records in the DB, i want the lovs at the search fields of af:query getting updated automatically. Right now , if i click the Reset button then the lovs are getting updated. So i wanted to do the reset programmaticaly to update the lovs of af:query.

  • Query LOV and how to display the LOV back in the Text item.

    Hi All,
    I have got a big time problem in getting back my LOV value after Querying it.
    Am using a Tabular Canvas having 10 rows and two columns, one having "Type"(as LOV) and corresponding "Type identifier".
    My LOV is an non data block item, having the correct return type. When ever i search for a value in the LOV, its should give out all the "Type Identifier" list and the "Type".
    But what i am facing is, am not able to get back the selected LOV after querying it and am getting the entire "Type Identifier' with out any filter.
    In short my requirement is,
    - I need to search an LOV,
    - Display the LOV value in the "TYPE" field.
    - Display the corresponding "Type Identifiers'
    Pls note: Since am new to Oracle Forms, if in your replies, if you specify to use any code in trigger, pls specify which trigger to use.
    Thanks a lot in Advance... its bit urgent
    Arun

    Hi Dave
    The requirement is suppose i have an Lov called OrgName is atatched to a column in which user will select the Ou Name from the list and internally the respective org_id will store into the database where the OU Name is available in the same data block but it is not database item . (Only org_id is database item)
    Now if you query the same block i would expect the Ou Name should display .
    Right now in my case it is not displaying anything into that column.
    Hope u understood this time..Please let me know is there any trick?

  • How to call the column names into the prompt and display values dynamically

    Hi,
    i have a typical requirement where I have to call 3 columns into the AGE Prompt (I know we can use the Column Selector to call the columns) .Below is the Screen Shot.
    !http://i46.tinypic.com/2qjfukh.jpg!
    2nd Requirement)
    The three columns I have are order Date, Ship Date and Entry Date.
    Whenever I click on Orderdate from the Prompt, It should dynamically show its values in the report.
    and When I click on the Ship Date from the Prompt, it should display the corresponding values in the report.
    and so on with the Entry Date.
    Can anybody help me how to acheive this.
    Thanks a ton.

    Ok so then you can use a fake column prompt. Here's one quick approach (nicer and cleaner with LOV tables but I don't if you have any of those).
    - Create a fresh prompt using any column you want.
    - Open the column formula using the fx button and replace the formula with 'abc'.
    - Use "SqL Results" as the "Show" option.
    - SQL:
    select case when 1=0 the Markets.Region else 'Order Date' from Paint.Markets UNION ALL
    select case when 1=0 the Markets.Region else 'Ship Date' from Paint.Markets UNION ALL
    select case when 1=0 the Markets.Region else 'Entry Date' from Paint.Markets
    - Set Variable = Presentation Variable = @{vPresVarSelectedDate}{Order Date}
    - Label = Date
    Then in the request, you change the column formula for the date. I'm going to make it short and just assume you called your time dimension alias(es) like the lowest grain:
    "@{vPresVarSelectedDate}{Order Date}"."@{vPresVarSelectedDate}{Order Date}"
    Cheers,
    C.

  • Hello, I have been unable to activate my new iphone 6. When I call the activation phone number it just says terms and conditions have been accepted on this account. Please help.

    I have been unable to activate my new iphone 6. When I call the activation phone number it just says terms and conditions have been accepted on this account. Please help.

    Same thing here. I love how they include this nice and easy to follow guide in the box and the KEY step for activation (the phone call) is a total fail. To verizon: the automated just says Terms and Conditions have been accepted for this number. Press 1 to enter another phone number in the order. Well, I HAD NO other phone number in my order. The message gives no other options. She repeats the same line 3 more times and after the 3rd time, it says please hold while we transfer you, call may be monitored etc. Guess what, its 2 am ET and customer service is closed?
    Do you guys expect thousands of iphone customers to speak to a CSR just to activate? Why not just let us do it online? I have activated plenty of phones even LTE phones, online. Now I'm going to have to compete with the other 30,000 people who ran into this same problem overnight tomorrow on the phone....

  • Autocomplete to Combobox, where is the LOV...

    Apologies for the title of the post...
    I am hoping I am just missing some minor item, and a push in the right direction will get me working again.
    A few years back, most likely under Apex 4.0, I started using Jquery - Autocomplete for looking up employee names, hostnames, etc. This used some Javascript that someone had posted (don't recall who), and it worked pretty well. I would add a stanza like this to the page def (to be run after the page loads). The X02 passed some extra info to the on demand procedure to help with the search.
    $("#P28_REQUESTOR").autocomplete('APEX', {
                    apexProcess: 'PERSON_SEARCH_ACTIVE',
                    width: 600, multiple: false,
                    x02: 'Hostmaster:Owner Ok',
                    minChars: 3, selectFirst: false,
                    formatItem: function(row, i, max, term) {
                            if  ( row[1] > 0 )
                                return row[0]+" "+row[2]+" "+row[3];
                             return row[0]},
                    max: 100,
                    cacheLength: 1
       $("#P28_REQUESTOR").result(function(event, data, formatted) {
             $("#P28_REQUESTOR_ID").val(data[1]); });The Person Seach Active on demand procedure was something like: (Note - some details have been left out to give a better example - in the end, it doesn't matter at all)
    declare
       target_name  varchar2(255);
       scope_id    varchar2(16);
    BEGIN
       OWA_UTIL.mime_header ('text/html', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       target_name :=  wwv_flow.g_x01;
       scope_id := wwv_flow.g_x02;
       Simon.Apex_People_Select.Trace('On Demand called for ' ||Target_Name || '/' || scope_id);
       FOR c IN (SELECT search_name,display_name,result_id
                   from table
                 (Simon.HM_Network_Maint.search_network(scope_id, Target_Name)))   
       LOOP
             HTP.p(c.search_name ||
                   '|' || c.result_id ||
                   '|' || c.display_name );
       END LOOP;
    END;The g_x01 value is what the user is typing into the text box - once they hit three characters, it gets sent to Oracle for processing via the on demand procedure. The g_x02 (and 03, 04,..) are additional parameters - perhaps from a parent LOV. General concept with the returned data is the first element is the text to be searched, the second is the actual value (typically an integer - primary key), and the third value is what ends up in the text box once a value is selected (the searching value often has additional identifying info.)
    This approach worked pretty well, although it did not play well with cascading LOVs. But once I upgraded to Apex 4.2, I started hitting other issues with jQuery version differences, and some odd failures. To make matters worse, the original developer of the Javascript module, abandoned it - was not doing additional work with it.
    Combobox
    I did NOT want to re-invent the wheel, and it seemed to be a much better approach to move into PlugIn world - ideally using a plugin that someone ELSE wrote and was maintaining. I looked at the LOV Friendly Autocomplete plug in - and even installed it a few places - and discovered that it did not play well with my earlier autocomplete code.
    My concern with using the LOV Friendly Autocomplete - is that I didn't know how to provide any of the "Target Name" search info to the LOV (since that is what is being typed by the user at the time).
    I also started looking at the Combobox plug in - which seemed even closer with Lazy Loading=Yes (I also liked the ability to add new items on the fly) - but I was not sure how to provide the "Target Name" info the the Pipelined function that generates the list of values.
    I want to get rid of all of my old Autocomplete javascript and move to one (or more) plugins - (Which is why the details above don't matter, just trying to provide some background)
    Is this a good direction (Combobox or LOVFA)? How/Where do I connect my search (lov generation)?
    Edited by: Jon Finke on Jan 9, 2013 5:52 PM

    I've found the LOV (list of values from Forms) but I've
    notice that the search functionality is missing.
    (I'm talking about the "drop as " button LOV option on a form in JClient for ADF from "Data Control Palette"
    Best regards,
    Lucian

  • All APPLICATIONS CRASH WHEN AN ALERT BOX POPS UP! FOR THE LOVE OF GOD HELP!

    When any alert box pops up (e.g. Reseting Safari, Changing an extention in Finder) The application that sent the alert crashes within a few seconds. I do not know how this happened, but it is very annoying and harmful to what i am working on. I think this started a few days ago, and the only thing that i think might of caused it is Google earth, which i just installed. I tried disk utility (on and off the CD), to no avail. This is not restricted to any particular program, and crashes everthing. Please, For the Love Of God Help!!!!!!
    I have Safari 1.3.2 (if it helps)

    Hi--
    Try this: go to the System Preferences and look at the "Speech" preference pane. Make sure everything is turned off in the "Spoken User Interface" tab. Especially the "Speak the Alert Text".
    If that's not it, open up your Console application from the Utilities folder. Click on the "Logs" icon at the top left until you see a listing of folders on the left side. Click the triangle next to ~/Library/Logs to reveal some sub-folders. One should be called "CrashReporter". Open it and click on one of the crash logs. Each one should have a section like this:
    Thread 0 Crashed:
    0 <<00000000>> 0xfffeff10 objcmsgSendrtp + 16
    1 com.apple.Foundation 0x928aa9d0 -[NSCFDictionary setObject:forKey:] + 164
    2 MyController.ob 0x0003fba0 +[MyController initialize] + 240 (MyController.m:16)
    3 libobjc.A.dylib 0x909c0670 class_initialize + 300Copy and paste the crashed thread here and maybe we can figure out what common thing is crashing.
    charlie

  • Can't decipher various symbols because I communicate with words made of symbols called the alphabet, not hieroglyphs.

    The hieroglyphs that have inundated mobile apps are fking indecipherable. Tell me, what does a symbol of four solid squares bounded by a dotted square mean? To a fking cave man it's probably the name of a city, but here, in the modern world, where we communicate by making words out of common symbols known to many, (we call it an alphabet, part of this thing called language, which facilitates communication and reduces confusion), ALL IT IS IS FOUR SQUARES IN A BOX. I shouldn't need to learn a new language to use a tablet, when someone who speaks my language could simply put WORDS in the 'buttons,' or whatever they're called. Does the clipboard mean copy to the clipboard, or from it?? I can't use the process of elimination, because none of the other caveman symbols are labeled either! If Firefox is trying to emulate windows 8, please, please, please for the love of god, stop. No one like windows 8.
    Yes that was a rant. Yes I can look up the meanings of all these cute little pictures that some harried millennial thought were 'innovative.' I can even get tutorials on YouTube on how to use Firefox! Great! I can waste time relearning how to use a fking web browser, because never mind that b

    Never mind that an errant fingertip touched the screen and cut off my rant, I'm just glad that this time it didn't delete my whole damn comment!
    Here's the question: can I make all the stupid symbols, all of them, into words? Otherwise, I'm gonna trash all this mobile touchscreen crap go back to reading paper books. This tech isn't helpful, it's a pain in the ass.

  • J9.03,InputSelectLOV :why the lov Jsp can't return the selected value?

    I puted a InputSelectLOV in my dataeditcompenents.jsp to display the lov Jsp,but when i selected a row,it didn't display the value i selected in my edit Jsp,how can i do?
    and can i return more values from lov to put in my editform?
    the following is my dataeditcompentents.jsp

    the following is my dataeditcompenents.jsp:
    <%@ page language="java" import = "oracle.jbo.html.*" %>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%-- This JSP component build an edit form for a single record and
    generates an update submit event.
    It is called by the DataEdit tag --%>
    <%
    // Retrieve all request parameters using our routine to handle multipart encoding type
    RequestParameters params = HtmlServices.getRequestParameters(pageContext);
    String amId = params.getParameter("amId");
    String dsParam = params.getParameter("datasource");
    String formName = dsParam + "_form";
    String rowAction = "Current";
    String event = "Update";
    %>
    <%-- Restore the data binding to the datasource passed as parameter --%>
    <jbo:DataSourceRef id="dsEdit" reference="<%=dsParam%>" />
    <jbo:DataSource id="lov" appid="<%=amId%>" viewobject="View1" />
    <%-- Select the way to retrieve the row to edit based on the event --%>
    <jbo:OnEvent name="edit" datasource="dsEdit">
    <% rowAction = "Get"; %>
    </jbo:OnEvent>
    <jbo:OnEvent name="create" datasource="dsEdit">
    <% rowAction = "CreateOnly"; event = "Create"; %>
    </jbo:OnEvent>
    <%-- Build a form with an editable field for each of the attributes of the row --%>
    <form name="<%=formName%>" action="<%=params.getParameter("targetURL")%>" enctype="<%=params.getParameter("encType")%>" method="POST">
    <%-- Retrieve the row to edit --%>
    <jbo:Row id="rowEdit" datasource="dsEdit" rowkeyparam="jboRowKey" action="<%=rowAction%>">
    <table border="0">
    <%-- Iterate through all the Attribute of the row --%>
    <jbo:InputSelectLOV datasource="dsEdit" dataitem="RecieveId" displaydatasource="lov" displaydataitem="SysId,UserName" displayvaluedataitem="SysId" formname="<%=formName%>" lovurl="lovcomp.jsp" />
    <jbo:AttributeIterate id="def" datasource="dsEdit">
    <tr>
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>" align="right"><jbo:ShowHint hintname="LABEL"></jbo:ShowHint><%
    // Mark all the mandatory attributes with '*'
    if (def.isMandatory())
    %>*<%
    } %>
    </td>
    <td wrap="soft" title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"><jbo:InputRender datasource="dsEdit" formname="<%=formName%>" />
    </td>
    </tr>
    </jbo:AttributeIterate>
    </table>
    <%-- Generate an "Update" event as part of the Form --%>
    <jbo:FormEvent event='<%=event%>' datasource='dsEdit' addrowkey='true' />
    </jbo:Row>
    <jbo:OnEvent name="create">
    <% rowEdit.remove(); %>
    </jbo:OnEvent>
    <%-- Pass along originURL request parameters using a hidden field--%>
    <input type="hidden" name="originURL" value="<%=params.getParameter("originURL")%>">
    <input type="submit" value="Update">
    <input type="reset" value="Reset">
    </form>
    <jbo:ReleasePageResources />

Maybe you are looking for

  • Time Machine Slow & Backs Up Large Amounts of Data - The Fix

    This is about Time Machine becoming very slow and taking hours to backup and trying to backup large amouts of data each time. I spent a month on the phone with 2nd level Tech support and engineering - every other day. I have 4 computers (one was a cl

  • SSL Certificate setup for Web/Address Book/iCal in 10.7 Lion?

    I know nothing about certificates. I plan to use my Mini server to help manage my family's computers which are pretty spread out across the U.S. My plan is to use profile manager for device management, host a couple websites (one secure for home secu

  • A connection to the SharePoint site cannot be established. To synchronize or refresh your list, you must be able to connect to the SharePoint site

    Hi, I have a SharePoint 2010 farm with two Web Applications. For example: https://contoso.domain.com https://finance.domain.com Both Webapp use https --> 443. Same valid certificate for both (*.domain.com) I tested exporting an Excel library in https

  • Flash & PHP

    I have created a database that contains mp3 numbered audio such as 411.mp3, 412.mp3. However, in Flash, I cannot play the mp3. I am using Flash Pro 2004. My mp3 audios are located in this folder. /media/aduioSermons/audios My flash MediaPlayBack that

  • ADF TopLink workshop feedback

    http://www.oracle.com/technology/obe/obe9051jdev/ide1012/adfworkshop/buildingadfapplicationsworkshop.htm Thanks for this workshop. Information was useful in getting to know ADF and how to work with it in conjunction with TopLink. However, I feel that