MDform - need a value to be defaulted.

I'm new to portal forms
I'm working on a Master Detail portal form.
My tables
webcust_header (master table)
customer_id
Webcust_detail (detail table)
Customer_id
How can I show or assign or default the customer_id selected in
master into detail customer_id in the form.I don't see the
customer_id in the detail block after selecting the values in
master block from a combo box. I have to use the customer_id
from detail for another LOV in the detail feild as a dynamic value.
Can any one please help me out ?
thanx
Sirisha

Thanks very much rahul for your reply.
I hope I'm not explaining in a right way. Let me try again.
I want to default a master block value in all the foreign key column in detail block even for the empty field. because I have a Dynamic combobox LOV based on that cloumn. It will only refresh if it has any value.
Master Block
Deptno Department Name (Combox Box)
10 ACCOUNTS
Details Block ******* I have 5 rows in detail block
deptno Empno JOB (Dynamic combo box based on deptno in detail )
10 1234 MANAGER
10 2345 SALESMEN
10 4321 MANAGER
Note : ? is Combo box becomes very small without a value in it.
In this form what I'm trying to do is
1) I select department from combo box which will automatically put the deptno in master block.
2) I hit the query button and all the 3 records in emp detail are displayed.
3) Now when I what to create a new record in emp(detail block) and assign them a job.I can't Because my JOB field is set on a dynamic LOV as combo box. and it is expecting a deptno in detail block. which is acutally not there.
I tried the following code it doesn't work. Can you please look into my problem again ...Thanks a lot
Hope to see your reply soon .
Thanks a lot
Sirisha
[email protected]
... before processing the form.
declare
     V_DEPTNO number;
begin
V_DEPTNO := p_session.get_value_as_NUMBER(
p_block_name => 'MASTER_BLOCK',
p_attribute_name => 'A_DEPTNO');
FOR i in 1..g_max_det_rec LOOP
p_session.set_value(p_block_name => 'DETAIL_BLOCK',
p_attribute_name => 'A_DEPTNO',
p_index => i,
p_value => V_DEPTNO);
END LOOP;
end;

Similar Messages

  • Set new value as a default value while creating PD(Performance Dailog) Form

    Hi,
    In Performance management,
    While clicking on the Create new PD Form Button, We are getting one Pop up window with the deafult selection screen.
    In that,
    We are getting Valid From: and Valid To value bydefault as a '01.01.2011' and '31.12.2011' .
    We need to change that value. How can we set our new value as a default value.
    We checked in debugging, this values are hardcoded in the SAP standard dyanpro component.
    how can we set our new default value?
    Please suggest.
    Thanks in advance.
    Monika

    You create it through PHAP_ADMIN_PA?
    The validity period is being defined by the BAdI HRHAP00_DOC_DEF_DV
    Implementation HRHAP00_DOC_DEF_DV02,
    can you chekc this/
    If you want to create appraisal documents for multiple participants, a
    more convenient way would be to use 'PHAP_PREPARE'. This also sets the
    validity period.
    If you still want to create the appraisal documents using 'PHAP_CREATE'
    and you want to use the BAdI for defaulting the validity period, you can
    adapt the BAdI implementation to your needs yourself. In that case,
    please make a copy of the BAdI implementation 'HRHAP00_DOC_DEF_DV02'.
    When creating a new appraisal, the system suggests the period January 1
    to December 31 of the current year as the default appraisal period. You
    can change this default by changing the Business Add-In (BAdI)
    HRPDV00APPRAISAL0001 in the ERP system."

  • Modify the preference value of the default route

    Hi
    How to achieve the Below ? any configuration example?
    1)How to modify the preference value of the default route to be less prefered than OSPF External route
    2)how to redistribute the default route as type 2 external route
    3)how to redistribute the default route as type 1 external route
    thanks

    Hi Ibrahim,
    See below:
    1) Can you elaborate on this a bit? Can you explain, specifically, what your trying to accomplish? I don't think you can get a default route into the OSPF RIB that is not external as the default is injected as a Type-5 LSA (e1 or e2). If your talking about getting a router to use the OSPF learned default over the default router learned via some other source (e.g. static, BGP, etc), then it depends on the source because of the Administrative Distance when comparing the two defaults ( the one default learned via OSPF has AD=110, and the other default is AD=X, where X is the Administrative Distance assigned to the protocol).
    2) Use the "default-information originate metric-type 2" command under "router ospf" -- Note this is the default
    3) Use the "default-information originate metric-type 1" command under "router ospf" -- Note, you don't need this in Totally Stubby Area.
    4) For NSSA area you have to use the "area nssa <area_num> default information-originate metric-type <type>" router subcommand. Note your NSSA should have a Type-7 LSA for the default route
    Rate if helpful.
    Joe

  • Need of value mapping  and fixed values in (conversions)under graphical map

    hi.
    helo all.
    i just want to know what  is the need of value mapping  and fixed values in (conversions)under graphical mappping.
    can any body explain me with real time example .
    waiting for your response.
    bye.
    regards.
    seeta ram.

    Hi Seetha Ram,
       Value mapping:  Where we maintain a table of values which are mapped.
    based on the incoming value we can send the respective resultant value.
        for Eg: for language SAP maintains as EN  --> English  etc
    can u refer these
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    Re: Value mapping table
    Thanks and Regards
    Harsha Vardhan.P
    **Reward points if found useful**

  • SelectOneChoice - showing the first value as the default?

    Using a selectOneChoice, how do you get the first value to show in the form as the default? It always displays a blank item when the form first comes up. I don't want the user to have to select a value for the defaults. I have 'selection required' on.
    --------- .jspx page ------------
    <af:selectOneChoice value="#{bindings.View1country.inputValue}".....>
    <f:selectItems value="#{bindings.View1country.items}"/>
    </af:selectOneChoice>
    -------- pagedef xml ---------------
    <list id="View1country" IterBinding="View1Iterator"
    ListOperMode="0" StaticList="true">
    <AttrNames>
    <Item Value="country"/>
    </AttrNames>
    <ValueList>
    <Item Value="United States"/>
    <Item Value="Canada"/>
    </ValueList>
    </list>

    thanks - I am using ADF BC read-only view objects, but I don't see anywhere to define the selection on the VO properties? I defined the list on the front-end .jspx page by adding a selectOneChoice and defining its properties.

  • Running 10.4.11 finder window too large need to get lbak to default.

    running 10.4.11 finder window too large need to get lbak to default.

    Hi again BDA...
    I'm not certain if it will work on other windows. I am more concerned with it working with the Firefox interface and did not try it on an alternate window.
    On Sep 4, 2012 2:47 PM    (in response to Alexander_Apple) you said:
    "Firefox uses it own settings & Method for that"
    That does make sense which is why I asked if any of the Mac gurus know where in Firefox I go to change the setting. I wasn't really keen on adding another 3rd-party app to my machine. There must be a simpler route to take. Maybe change a preference in Firefox 3.6.28 or in the Displays Preferences? My display is a Samsung LED monitor Model NO. SMBX2235. My Displays Preferences are: "1920 x 1080 @ 60 HZ (NTSC) Millions" but, having not changed them since first setting up the monitor, I'm fairly certain it's not the Displays Preferences. Is there a chance I hit a Function key plus a letter or number one day when typing? I don't recall doing so.
    Thanks for all  your suggestions BDA. I find  it's a bit confusing when you type the word "Windows" with an uppercase "W". Windows to me is something used on an IBM compatible computer. I, personally, do not consider one computer to be better than another. They each have their own advantages and disadvantages and  each type of machine can handle certain apps better than the other machine.
    Thanks again BDA. I hope you have a great day!
    AA

  • Need help formatting text field default value

    Hello,
    I've received a customer request to put default text into the Value section of a text field. They're requesting that the default text include line breaks, bullets, etc. I added a Text Field object and added the default text to the Object tab > Value tab Default field but can't figure out how to add line breaks, etc.
    Thanks in advance,
    Saskia

    Hi,
    this is possible but not doable with the UI of Designer.
    The workaround is as follows:
    1. Create a text, enter your default text with all the formattings you need (text color, bold text, line breaks etc.)
    2. Create a text field and enter any word as default value. Let's say "Default".
    3. Select the text and the switch to the XML Source view.
    There you will find all the formatted text between the <value> tags such as:
    <value>
         <exData contentType="text/html">
              <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="letter-spacing:0in">This is<span style="xfa-spacerun:yes"> </span></p><p style="color:#ff0000;letter-spacing:0in">default Text</p><p style="letter-spacing:0in"><span style="xfa-spacerun:yes"> </span>• with<span style="xfa-spacerun:yes"> </span><span style="font-weight:bold">RichText</span> formatting.</p></body>
         </exData>
    </value>
    4. Select the whole code between the <value> tags and copy it to the clipboard (ctrl + c).
    5. Go to the Design View, select the text field, go back to the XML Source view.
    6. There you'll also find the value <tags> and your default value you entered before.
    <value>
         <text>Default</text>
    </value>
    7. Select this code section and paste the value copied before to the clipboard by pressing ctrl + v.
    8. That's it. When you now go back to the Design View your text field shows a formatted RichText as defaul text.

  • Value check in Default.LGF

    Hi BPC People,
    I'm a newby in BPC, so I have a lot of questions....but first one:-)
    I want to calculate variable costs like "Rabat" or "Provision" and this should be progessive increase.
    I tried the following, but e.g. if the GRINCOME-Value is "150" then the second REC-Statement overwites the first account-result(15) with zero.
    So, I need something that do nothing if the result of the value check is zero.
    *WHEN P_ACCT
    *IS GRINCOME
    REC(FACTOR=((%VALUE%>99)0.1), P_ACCT=DISCONINVOICE)
    REC(FACTOR=((%VALUE%>999)0.6), P_ACCT=DISCONINVOICE)
    *ENDWHEN
    *COMMIT
    I think is a very common process, so I'm hopful that you guys can help me.
    Thank you,
    ju

    Hi Kranthi,
    I paste in default.lgf:
    *WHEN P_ACCT
    *IS GRINCOME
    *WHEN %VALUE%
    *IS > 99
    *REC(Factor=0.1,P_ACCT=DISCOFFINVOICE)
    *IS > 999
    *REC(Factor=0.2,P_ACCT=DISCOFFINVOICE)
    *ENDWHEN // Value
    *ENDWHEN // P_ACCT
    But I still get the following message (Complete version):
         Application     :     PLANNING
         Status          :     Failed
         Submitted Count     :     1
         Accepted Count     :     1
         Rejected Count     :     0
              - Error Message -
    Error running default logic (Unknown Dimension Name in Keyword: "%VALUE%:)
              - Rejected record list -
    Error converting records: The root element is missing.
    I don't know, what's going wrong.
    What's about the "Unknown Dimension Name"? Any ideas?
    ju

  • Report parameter default value do not default correctly

    Hello Experts, I have a cascading parameters in my report.
    The first parameter called "Project" will allow to select a single Project Name from the list and based on the Project Name, the second parameters which is a "Date" parameter will give out list Months and Year in the Format 'Nov-14'. 
    For this Second parameter I defaulted the parameter to show First Month in the retrieved list of Months. But the problem is it will display the default Date correctly only certain times (there is a refresh problem). If i select a different project and it
    has a month that was retrieved in the first project it will still show the that Month but not the actual default month (Start Month) for that particular Project.
    Example: If I select Brisk from Project parameter, It will give me 18 months of Dates in the Date parameter. In that 18 month range first month is Sep-13 it will default to Sep-13 correctly. Then if I select a different project like "Creek" (example)
    as Project , the Date parameter retrieves some dates corresponding to Creek Project and in the retrieved months if  Date parameter has Sep-13 it will still show Sep-13 even though the
    Start Date for Creek project is Jun-12.
    1. Project Brisk: Defaulted correctly to Sep-13
    2. Creek Project : Should default to Jul-12 but still shows Sep-13
    Just for default value I created a separate dataset and used it to populate the default value and the SQL I used just for default value is as below:
    SELECT DISTINCT TRUNC(DATE_KY, 'MM') AS DEFUALT_DATE
    FROM            DATE_D D
    WHERE        (DATE_KY = ADD_MONTHS(:PROJECT_DT, - 6))
    Date parameter datatype is Date/Time,
    Available Values Tab: label field is a String but the Value field and the default field (Default Values tab) are Dates 
    Thanks in advance

    Thanks Vicky for reply.
    Yes you are right but I did not use First function as the query above retrieves only one date.
    I used your suggestion but it did not fix it.
    In this report I have three parameters.
    1. Project Code (Visible)
    SELECT DISTINCT PROJECT_CODE
    FROM      DIM.PROJECT     
    ORDER BY PROJECT_CODE
    2. Project Date (Invisible)
    SELECT
    MAX(CASENA.MILESTONE
    WHEN'ABCD'THENTRUNC(PROJECT_DATE,'MM')ELSENULLEND)PROJECT_DATE
    FROM
    DIM.PROJECTNA
    WHERE(NA.PROJECT_CODE
    =:PROJECT_CODE
    or'ALL'=:PROJECT_CODE)
    3. Start Date (Visible):
    Available Values Query:
    SELECT DISTINCT
    --DER_DATE is "Value Field"
    TRUNC(D.DATE_KY, 'MM') DER_DATE 
    --Display_date is "Label Field"
    , TO_CHAR(D.DATE_KY, 'Mon-YY')   Display_Date
    FROM DATE_D D
    WHERE DATE_KY BETWEEN ADD_MONTHS(:PROJECT_DATE, -6)  AND ADD_MONTHS(:PROJECT_DATE, 6)
    ORDER BY 1
    Default Values Query:
    SELECT DISTINCT TRUNC(DATE_KY, 'MM') AS DEFUALT_DATE
    FROM            DATE_D D
    WHERE        (DATE_KY = ADD_MONTHS(:PROJECT_DATE, - 6))
    When you select a Project from "Project Code", it will give a "Project Date" and based on the "Project Date" it will give a date range in "Start Date". That is why I am using "Project Date" parameter in my
    query. I even tried using Project code as you suggested but I still got the same result.
    Thanks a lot for your reply.

  • Need GR Value to be different than PO price

    We have a business scenario where I need to build a price in the PO and have only a portion of the condition records update the inventory account on GR.  In this particular case, we have an interco stock transport order with billing where we want to receive the material into the target plant at the factory cost of the supplying plant, but track a surcharge into a separate account.  Here's an example:
    We're going to transfer 100 units worth $1/ea for a total $100 from plant A to plant B.  PB00 is set to $1/ea for a total of $100.  We want the inventory value in plant B to be $100.  We also want to track an extra $.25/ea transfer price markup into a mark up GL account for a total of $25.  There's a 2nd condition type Z001 for $.25/EA for a total of $25.
    So far, I'm unable to separate out the surcharge when the GR posts to inventory.  It's posting $125 to inventory.  Does anybody know if we can do this and if so, how?
    thanks
    Christie

    Dont use PB00 for such scenarios.
    Please create a different pricing procedure.
    and have you created a different document type for inter company orders?
    i have same kind of setup done in my company. let me know your current scenario detailed, i will provide the detailed solution

  • Windows 8.1 Pro Need command to disable "Use default gateway on remote network" option on VPN connection"

    Hello!
    I want to create bat script to create several VPN connection.
    There is powershell command to create vpn connection:
    add-vpnconnection -name "Test VPN" -serveraddress "vpn.example.com" -splittunneling -tunneltype "pptp"
    And I need to create VPN connection without the option "Use default gateway on remote network" option on VPN connection"
    Or modify this option on existent VPN connection with command.
    Please help me to find command option or other command to disable "Use default gateway on remote network" option on VPN connection" feature.

    http://technet.microsoft.com/nl-nl/library/ee431701%28v=ws.10%29.aspx RouteIPv4TrafficOverRAS True – Add a default gateway on the VPN connection False – Do not add default gateway on the VPN connection

  • HELP, K8N won't boot into bios or anything. need to reset board to default

    I got playing with the MB and tried HT 5x, it immediately shutoff and now won't let me into bios to reset it, so i'm waiting to hear from MSI. I tried clearing CMOS and everything, the damn thing boots on for 5 seconds and goes off. Screen stays black. Has to be turned on from PSU as power button at front won't do it.
    CPU: AMD64 3200+ (230FSBx11 = 2.5Ghz)
    MB: MSI K8N NEO
    MEM: OCZ 3700 Gold Dual Channel (2x256 in slots 1 & 2)
    VC: ATI 9800 Pro 450/380
    PSU: ANTEC True 550w
    Its not heat related as I've been able to run lots of tests and my case is open right now.  It just won't boot at all, black screen and shuts itself off.  All I need to do is get into bios to change HT back to 4x, but I can't.  Any ideas to reset to default?

    I tried having it unplugged for over 8hours while i was at work, tried taking the battery out, tried taking both memory out.  It starts up (screen stays off) and then shuts itself off after 5 seconds still.  I turn the power off, then back on at the PSU (the power button at the front won't turn it on or off) then it starts all over again.
    My ABIT IC7 would reset to default it turned off and on 3 times in a row...why dosen't this board have something like that.  arg.  So anyone know how I can get this damn board to allow me into bios?

  • Need 100% value in my reslt.

    Hi BI experts,
    Need your valuable feedback.
    Actally I have one field C in my query designer, which gets value from A and B . C is calculated as  A * B. If one of my value of A or B is euals to 0(zero), I suppose to change the value as 1 and my result of C shold get 100% guranteed value.
    Please reply me if anyother option is suitable for 100% result.
    Regards,
    Kalpana.

    Hi Kalpana,
    Try this formula at the front end
    (((A <is not eqal to> 0) * A) + ((A == 0) * 1)) * (((B <is not eqal to> 0) * B) + ((B == 0) * 1))
    Hope it works for you.
    Regards,
    Satyam
    Edited by: satyam bhardwaj on May 16, 2011 11:42 AM

  • Need to increase bandwidth session default 5000 to 9000

    I have a 2621 running (C2600-IX-M), Version 12.3(9) c2600-ix-mz.123-9.bin
    I need to increase the bandwidth session default 5000 to at least 9000 for running new Polycom 9004 Hi-def video units. I am having having difficulty finding documentation or code recommendations so I can overcome that limitation in the current IOS version. I would like each endpoint to be able to call at 4meg. The way the gatekeeper calculates it, each endpoint's bandwidth added together equals the session default #, I.e. 2 cameras set to call at 2meg = about 4000 for bandwidth session. Both of my hi-def cameras register to the same gatekeeper and the calls are rejected when I try to go over 2306kbps for the reason stated above.
    Any advice would be appreciated. I am considering buying a Polycom SE200 to replace my Cisco gatekeeper.

    Hi Victor,
    This is a kind of problem that i faced, i have a Role Menu which users select related query, then the query is opened in web browser. Problem is that there are 33 rows displayed by default. I need to increase it. Can you please share the information if you could achived it?
    Regards
    Sancho

  • t:dataTable does it need the value attribute?

    In this Post: http://forum.java.sun.com/thread.jspa?forumID=427&threadID=679591
    ..."jsweetland" writes this snippet:
    <h:dataTable var="item" value="#{myBean.items}" border="1">
       <h:column>
          <f:facet name="header">
             <f:verbatim>Name</f:verbatim>
          </f:facet>
          <h:outputText value="#{item.name}"/>
       </h:column>
       <h:column>
          <f:facet name="header">
             <f:verbatim>Description</f:verbatim>
          </f:facet>
          <h:outputText value="#{item.description}"/>
       </h:column>
    </h:dataTable>my question is why do we need another bean for the dataTable tag ---
    <h:dataTable var="item" value="#{myBean.items}" .....>
    Can't we directly create list items and use them as values inside the column tag? in other words in our example above can we make do with only the "item" bean and get rid of the "myBean" ?

    Hello,
    I don't see your point, I only see one bean, "myBean", where do you see "antother bean"? How do you want to iterate over items, rows in the dataTable? Where do you get information about current row from in actions?
    Regards,
    Thorsten

Maybe you are looking for

  • Browser URL 127.0.0.1?

    Hi, we will take a look to the Service Desk virt. Appliance. But after first install i got the hint on Appliance Managment Screen, the Browser URL for Service Desk is 127.0.0.1? Where can i change it to the correct URL/IP? Thx Thomas

  • Adding the system to the the SAP-Title in the Taskbar

    Hello everybody, I've got an easy question (hopefully): Is it possible to change something in the settings, so that in the title is also the system? For example: Normal: "Form Painter" And I would like to have it in this way: "L01 - Form Painter" (L0

  • Getting Invalid Descriptor Index (SQL ERROR) ERROR

    Hi, When i am running this java class then i am fetiching all the values from database table to the CSV file then i am getting the following database error. import java.io.FileWriter; import java.sql.Connection; import java.sql.ResultSet; import java

  • Slow discovery of wifi networks

    Any suggestions on how to improve the discovery speed of known wifi networks?  I usually use a wired connection but when I do use wifi it can take 10+ minutes for my routers SSID to appear in the list of available networks. Other weaker nearby networ

  • Jython error

    Hello, I am using the following code in ODI procedure import os      scen='#V_GET_SCEN'      scen_name=scen[5:-7]      scen_ver=scen[-7:-4]      file_name='C:/ODI_SCEN_DMP/#V_GET_SCEN'      odiscen="C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agen