Default the master / detail select lists

When I load a form that has pre-existing data I need to be
able to default the master / detail select lists to the correct
values.
(so the lists load with the correct values "selected" in each
case.)
Is it possible to do this and if so, how?
Thanks in advance for any insight.

Checkout this post. In it, I show how to do it using a couple
of global variables:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1308016&highlight_key=y&keyword1=SetDefaultState
But it could easily be modifed to get the default values from
the URL. See these samples for how to do that:
http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html
--== Kin ==--

Similar Messages

  • How to Use Parameter ID to default the Bank details in Vendor master

    HI,
    Client wants to default the Bank details for his vendor master records which will be created in future.Kindly advice me how to create parameter ID for defaulting the Bank details in vendor master.
    Kindly advice me
    Thanks
    Sunitha

    Hello,
    You have misunderstood the concept of Parameter ID.
    A field can be filled with proposed values from SAP memory using a parameter ID for that particular user. Normally in Finance, you can keep Company Code, Controlling Area etc. can ke kept as default. You find the Parameter tab in User Master Record in SU01.
    I am afraid that you want to populate the bank details in vendor master record. These fields are very critical for all types of payment. You should double make sure that you are entering the correct bank details in the vendor master record. If you do not fill any of these details, your BACS and CHAPS (DME) payments would get failed.
    If your client do not have details of bank information, the same can be filled later by writing a LSMW.
    Thanks,
    Ravi

  • A litle Help in the Master-Detail Pages

    Hello everybody how can i have more than recordset in the detail page because im stuck

    Okey here is my Databases tables :
    Manga :
    1
    title
    varchar(250)
    latin1_swedish_ci
    No
    Change
    Drop
    More
    2
    episode
    varchar(250)
    latin1_swedish_ci
    No
    None
    Change
    Drop
    More
    3
    language
    varchar(250)
    latin1_swedish_ci
    No
    None
    Change
    Drop
    More
    4
    link
    varchar(250)
    latin1_swedish_ci
    No
    None
    Change
    Drop
    More
    5
    id
    int(11)
    No
    None
    AUTO_INCREMENT
    Change
    Drop
    More
    Language Table :
    1
    lang_id
    int(11)
    No
    None
    AUTO_INCREMENT
    Change
    Drop
    More
    2
    code
    varchar(200)
    latin1_swedish_ci
    No
    None
    Change
    Drop
    More
    it contain 2 lign :
    + Options
    Edit
    Inline Edit
    Copy
    Delete
    1
    VostFR
    Edit
    Inline Edit
    Copy
    Delete
    2
    VoiceFR
    Manga_list :
    1
    id
    int(11)
    No
    None
    AUTO_INCREMENT
    Change
    Drop
    More
    2
    list
    varchar(250)
    latin1_swedish_ci
    No
    None
    Change
    Drop
    More
    Check All / Uncheck All With selected: Browse Change Drop Primary Unique
    the lign of this table:
    + Options
    Edit
    Inline Edit
    Copy
    Delete
    1
    One-piece
    Edit
    Inline Edit
    Copy
    Delete
    2
    Naruto
    Edit
    Inline Edit
    Copy
    Delete
    3
    Death-note
    Edit
    Inline Edit
    Copy
    Delete
    4
    Bleach
    I didn't understand what the "drills" mean's, but i will explain more sorry i'm not english , the master page is listing the "Title/Episode/language"
    For the site it's not online i test in the localhost,  here is how i want to my pages look's like and thank's
    http://www.dpstream.net/manga-3-episode-535%20[VOST%20FR].html
    PS: if im doing anything wrong in the database you can help me and thank's
    (do you have anything to keep in touche like (Facebook,MSN...), or anything like that f you do PM it to me ? and thank's a lot for helping me

  • Master details Sharepoint list

    We have requirement for Master details sharepoint list as follows
    details list will be having multiple item for master list
    how can we get the id of master form since that id will be utilized to have details list item
    is there any sample custom web part sample code available
    MCTS,ITIL

    Check below:
    http://stackoverflow.com/questions/417996/share-sharepoint-lists-across-sub-sites
    http://www.aspfree.com/c/a/braindump/creating-master-lists-and-views/

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • New PAR file not appearing in the Portal Archive Selection list

    Hello Knowledgeable Portal Ones,
    I am on EP6.0 SP13.
    A developer on the team created a new PAR.  It was uploaded, and it is now showing in my portalapps directory.  A super-admin for the portal can successfully create an iView using it (New from PAR), but developers (who have lesser security access) can not.  When developers attempt to do so, no portal archives appear in the portal archive selection list.  In fact, developers would not be able to create a new iView from any PAR.
    I see that the portalapp.xml has placed the PAR in "high-safety".  I suppose this may be causing the problem. 
    How do I address this problem?
    Thank you for your feedback.
    Kevin

    Hi Kevin,
    there are two known possibilities for this behaviour:
    1.) Within the portalapp.xml, the property com.sap.portal.pcm.Category has been set to "platform". This should only occur if someone imported an existing PAR to modify it. Also see Browse deployment iview
    2.) Someone has changed the permissions for application access (under System Administration - Permissions - Portal Permissions - Applications - <YourApplication> --- There the one who should create an iView from a component must have Read permission for the corresponding application, also see http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604e505fd11d7b84200047582c9f7/frameset.htm - Administrator Permissions - For portal components
    Hope it helps
    Detlev

  • How to fix the length of select list box?

    Halo, i am doing the research. I need to find out what is the method to fix the length of select list box. This is b'cos i can set the length of select list due to different length of record(s)/data(s).
    Another question to select list box. What is the maximum length of the select list box?? Can i enter the character with 255 lenght??
    Thank you very much..... a prompt reply will be appreciate!!

    Thanks for ur reply! actually that answer that you gave is right, but i also need to know what is the maximum lenght of character in the select list box?? any idea to that??
    Meanwhile, i also need to know how can i make the character display in select list box dynamically?? that means i can change the font style or font size??
    Anyway, thanks for ur answer.
    bscs.

  • Polling the master detail table and to update the LAST_UPDATED with SYSDATE

    Hi
    The requirement is polling the master detail table where read_flag is null and has to update the LAST_UPDATED with SYSDATE in both tables.
    Refered the MasterDetail and PollingPureSQLSysdateLogicalDelete samples of SOASuite.
    Used the delete polling strategy in polling process and modified the generated TopLink discriptor as follows.
    set the TopLink -> Custom SQL tab -> Delete tab with the following query
    for master table (RECEIVER_DEPT) :
    update RECEIVER_DEPT set READ_FLAG= 'S' , LAST_UPDATED=sysdate where DEPTNO=#DEPTNO
    set the TopLink -> Custom SQL tab -> Delete tab with the following query
    for Detail table (RECEIVER_EMP):
    update RECEIVER_EMP set LAST_UPDATED=sysdate where EMPNO=#EMPNO
    After deploying the bpel process data is updated in master(RECEIVER_DEPT) table with LAST_UPDATED as sysdate and read_flag as S
    however data is deleted in detail(RECEIVER_EMP) table rather than updated records.

    Xtanto,
    I suggest using JSP / Struts. UIX will be replaced by ADF Faces in JDeveloper 10.1.3 and thus I wouldn't suggest new developments to be started with UIX unless time doesn't allow to wait for ADF Faces. In this case develop UIX in an MVC1 model, using the UIX events for navigation because this model seems more likely to be mgratable, according to the UIX Statement of direction on Otn.
    Back to your question. You can create a search form in JSP that forwards the request to a StrutsData Action to set the scope of teh result set. The read only table can have a link or a button to call the detail page, passing the RoewKey as a string.
    Have a look at the Oracle by Example (OBE) tutorials that contain similar exaqmples.
    Frank

  • Primary key updation in the Master details form.

    Hi All,
    I am struggling with Master Detail form in apex 3.12.
    I have two tables.
    SaleMaster ( TRN_ID as PK ) Created from Sequence.
    SaleDetail ( TRN_ID , TRN_TYPE as PK) TRN_ID FK from SaleMaster , TRN Type is user Input in SaleDetail.
    What is best simple way to create the master details form for the above master details tables.
    Thanks.

    I found a way. I dont like it - but it works.
    I made a column link in the detail with the following:
    javascript: doSubmit('NAVIGATE@#ROWNUM#);
    This way I obtain information in the :REQUEST object about which row was clicked.
    In a After submit process on the page I then parse this :REQUEST object like this:
    DECLARE
    v_row NUMBER;
    v_pos NUMBER;
    BEGIN
    v_pos := instr(:REQUEST,'@',-1);
    v_row := substr(:REQUEST, v_pos+1);
    IF APEX_Application.g_f02(v_row) IS NOT NULL THEN
    :P_PRIMARY_KEY_ID:= APEX_Application.g_f02(v_row);
    ELSE
    :P_PRIMARY_KEY_ID:= -1;
    END IF;
    END;
    I know that my "Id" column is named f02 in the form, so this way I can find the id. I then assign this id to a kind of global variable - on the page I redirected to I can now find the Id.
    Talk about ugly code :P

  • Master detail: select in form (newbie)

    I've been looking at this example:
    http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html
    The bit of code I cannot understand is this:
    onchange="document.forms[0].citySelect.disabled = true; (That's in
    the first "select" element.)
    Indeed, when I test this on a page of my own, I must remove
    this bit of code to get the second select list to work properly.
    That is, in my trials that bit of code seems to inhibit the second
    list from populating per the selection from the first data set.
    This seems logical: the element with id="citySelect" is somehow
    "disabled". But in the Adobe example it works just fine... so I
    guess I am asking under what circumstances is the "disabler"
    disabling...
    TIA,
    Greg Smith

    Hi,
    what you initially did should work. However, a master may have many children and the attribute you move into the form is the one of the first detail row. So if the master does not have details then you only see the label.  I don't know why you have to build this construct, but wouldn't it be better to add the attribute on the View Object directly (adding a second entity object rerference)?
    Frank

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

  • To attach a RTF template(Report for printing ) in the master detail form

    I have an application in which I have 3  master detail forms  of which one of the form is a gate pass form . Now this gate pass form has a report region as the detail.
    All that i need help is to print the Gate Pass with few fields as information in the gate pass form , where an image or picture of the visitor is also a filed .
    Now I have created an RTF Template  which is the Gate pass layout with the pic.
    So ultimately I have the application for the gate pass form and the RTF template ready with me .. Fixing this template with the application with a BUTTON called PRINT is the challenge am facing !
    SELECT XVH.GPDATE
           , TO_CHAR(XVH.VISITORTIMEIN, 'HH:MI') VISITORTIMEIN --, (XVH.VISITORTIMEIN )
           , (TO_CHAR(XVH.VISITORTIMEOUT, 'HH:MI'))VISITORTIMEOUT
           , XVH.VISITOR_NAME --, = XVH.PERSON_ID
           , XVH.COMAPANY_NAME
           , XVH.PURPOSE_OF_VISIT
           , (SELECT A.FULL_NAME
                FROM PER_ALL_PEOPLE_F A
               WHERE A.PERSON_ID = XVH.PERSON_ID
                 AND SYSDATE BETWEEN A.EFFECTIVE_START_DATE AND A.EFFECTIVE_END_DATE) To_meet
           , XVH.VISITOR_PHONE
           ,APPS.GETBASE64 (XVH.VISITOR_PHOTO)
      FROM xxcdot.XXBCT_VGPF_HEADER XVH
    WHERE XVH.GP_HEADER_ID =  :P_HEADER_ID
    This is the query for the template ..
    Please help me with this. I am very new to apex and learning it with help of online tut

    Pars I need another Help
    I am working with a master detail form where in the form region i have a Radio group . Lets say the Radio group is
    o Returnable
    o Non Returnable
    o Other
    so when i select Non returnable I want a particular column called
    Line Status to get Disabled .
    I have done that by a dynamic action - using jquery statement (.Disable) .
    Defining the element attributes as Disable .
    Now the problem is that ,, Line status is getting disabled on the selection of Non returnable radio button. but unless and until i dont press the Add row button it does not work ,, else i will have to switch over between the radio buttons to get this action done !!

  • Issues in Processing the Master-Detail Form values

    We have a requirement in Oracle Internet Expenses (11.5.10) to fetch the form values from the Expense Allocations Screen.
    This page is based on Multiple VOs with Master Detail relationship. The data from the VOs mentioned are displayed in the Hgrid region.
    I need to fetch the input values for three fields (from different VOs) and pass them as paramater to the database function to perform the validation.
    Here, I am creating the handle for VO objects and using the Row object getting all rows in range (getAllRowsinRange()).
    The issue here is always, the Row length() is always fetched as 1 even it has multiple rows.
    Any help on this would be highly appreciated.

    Using Select Options u will get mulitiple values also u will get values like table.
    regards,
    kumar.

  • More than one Detail table in the Master Detail forms!

    Hi,
    I need to have more than one Detail table in Master Detail Forms.
    I want to see the details of the rows of the first Detail table in the Second Detail table. Please guide me to do this.
    Sincerely yours,
    Mozhdeh

    You can do one of two things
    1) Depends on the nature of your data model. I was able to manage many to many
    relationships using views and instead of triggers. This solution is somewhat complex but can work in certain situations.
    2)Works for situations where master record exists. create a page with mulitple portlets syncronized on some related key.
    create the following package to use on the md forms to place on the one page to be rendered.
    -- this package will facilitate the storage and retrieval of keys used by the related forms.
    create or replace package session_var
    IS
    session_parms portal30.wwsto_api_session;
    g_domain varchar2(2000) := portal30.wwctx_api.get_user;
    function get_id (id in varchar2) return number;
    PROCEDURE SET_ID
    (ID in VARCHAR2
    ,p_val in VARCHAR2
    ,P_URL in VARCHAR2
    END SESSION_VAR;
    create or replace package body session_var
    IS
    --pkg body
    function get_id(id in varchar2) return number is
    l_store_session portal30.wwsto_api_session;
    l_id number;
    begin
    l_store_session := portal30.wwsto_api_session.load_session(
    p_domain => session_var.g_domain,
    p_sub_domain => 'your domain');
    l_id := l_store_session.get_attribute_as_varchar2( p_name => id);
    return l_id;
    end get_id;
    PROCEDURE SET_ID
    (ID in VARCHAR2
    ,p_val in VARCHAR2
    ,P_URL in VARCHAR2
    IS
    l_store_session portal30.wwsto_api_session;
    begin
    l_store_session := portal30.wwsto_api_session.load_session(
    p_domain => session_var.g_domain,
    p_sub_domain => 'your domain');
    l_store_session.set_attribute(
    p_name => id,
    p_value => p_val );
    l_store_session.save_session;
    * Redirect to the page using p_url;
    portal30.wwv_redirect.url(P_URL);
    end set_id;
    END SESSION_VAR;
    --the form master detail form, section  before display page enter the following code and publish as portlet.
    declare
    l_fs varchar2(4000);
    l_s varchar2(4000);
    v_con_id number;
    begin
    v_con_id :=rfq.session_var.get_id('CON_ID'); -- primary key and key used to relate details
    p_session.set_shadow_value( p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_CON_ID', -- attribute on form related to primary key
    p_value => '= '|| v_con_id,
    p_language => portal30.wwctx_api.get_nls_language ,
                   p_index => 1
    l_fs := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK', p_attribute_name => '_FORM_STATE');
    l_s := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK', p_attribute_name => '_STATUS');
    if l_fs = 'SAVE' and l_s is null then
    WWV_MASTER_GENSYS_1(p_block_name => p_block_name,
    p_object_name => p_object_name,
    p_instance => p_instance,
    p_event_type => p_event_type,
    p_user_args => p_user_args,
    p_session => p_session);
    p_session.save_session;
    end if;
    if l_fs = 'QUERY_AND_SAVE' and l_s is null then
    WWV_MASTER_GENSYS_1(p_block_name => p_block_name,
    p_object_name => p_object_name,
    p_instance => p_instance,
    p_event_type => p_event_type,
    p_user_args => p_user_args,
    p_session => p_session);
    p_session.save_session;
    end if;
    exception
    when others then
    PORTAL30.wwerr_api_error.add(PORTAL30.wwerr_api_error.DOMAIN_WWV,'app','generic','onLink', p1 => sqlerrm);
    raise;
    end;
    --then create other md forms and publish as portlets in a similar manner.
    -- create a form (form_session_vars) to call procedure session_vars and place the following code in the
    addiontional pl/sql tab
    WWV_GENSYS_1(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    --then create a page and place the md forms created above as portlets on the page.
    --create a link and target the form_session_vars and in the link target inputs
    enter the values for your user parameters
    id= CON_ID --"your primary key name"
    p_url= url/page/"your_page"
    --finally create a report (QBE or standard).
    in the column formation section use the link created earlier to direct the user to the target page.
    How it works.
    When the link is selected the form_session_Var is called and automatically runs setting the primary key values
    in the user session store. The step is required or the resulting page will not render properly. Then the user is redirected to the page where the portlets are rendered. The portlets start rendering, the before display page calls the session vars package to retrieve the key and put the form into query_update mode returning the data.
    The portlets finish in query_and_save mode with details in update mode, the allowable insert, delete and none actions will be available for the details.
    benefits: The session_Var package code is resuable as well as the form form_session_Var and the link. passing the key name and values are done at the report level and detailed in the report links. the md forms will need to reference their related keys.

  • Error while creating the master-detail forms

    on creation of a new master-detail form or on edit of a existing master-detail form, i get the following error -
    ******** START ERROR **********
    Thu, 15 Mar 2001 23:02:16 GMT
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "CC_INTRANET.WWV_BIND", line 56
    ORA-06512: at "CC_INTRANET.WWV_UI_LOVF", line 3123
    ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 2850
    ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 5567
    ORA-06512: at line 8
    DAD name: cc_intranet
    PROCEDURE : CC_INTRANET.wwv_uiform_build.show_header
    URL : http://webdb.us.colorcon.com:7777/pls/cc_intranet/CC_INTRANET.wwv_uiform_build.show_header?p_wizard_mode=MASTER&
    ********** END ERROR ********
    any ideas anyone ... ?
    thanx in advance ...
    null

    more information on above -
    i upgraded webdb 2.2 to portal 3.0.6 and the new master-detail form is been created in the upgraded site.
    pls reply on this.
    thanx a bunch
    null

Maybe you are looking for