Usage question about Default Display Value based on calculation

Hi,
I read on page 3-70 of the devguide about using EL for Default Display Values.
I want to something similar as the defaultSalaray based on some kind of calculation. There is stated to store the value on the request or session (request is fine for me).
I'm only wondering how I can put some infromation like this on the request using JHS.
Regards,
Marcel

Marcel,
This requires custom code in a JhsDataAction subclass. For example, you can overwrite method handleLifeCycle, and before calling super you can add a request attribute:
actionContext.getHttpServletRequest().setAttribute("defaultSal","23000");
Alternatively, if you have a business service method that calculates the default salary, you could create a separate DataAction, drag and drop this method on the data action, and add a success forward to your data page action. In the DataAction you can configure the method result location (requestScope, sessionScope). This way, you do not need to write java code.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How can I set bind parameter as Default Display Value in JHeadstart

    Hi,
    I am using -
    JDeveloper Studio Edition Version 10.1.3.1.0.3984
    JHeadstart Release 10.1.3.1.26
    Can anybody help me for the following:
    I am using a super class of ViewObjectImpl where I am definning a bind parameter (Student ID) using login userid:
    if ("p_std_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
    bindParam[1] = studentNumber_from_LDAP;
    Then I defined p_std_id in Bind Variables tab in VO Editor and used that in Where clause in the SQL Statement tab.
    This is working fine.
    Now what I want to do is:
    I want to put the value of p_std_id as Default Display Value for a field.
    Can anybody let me know how I can put the value of p_std_id in JHeadstart Application Definition?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hi Jan and Steven,
    Thanks for your reply.
    I need to show the default value in the table layout.
    Steven, could you please give some more hints about EL Expression?
    To obtain the value of p_std_id now and pass it on as bind param, I am using a class extending ViewObjectImpl. Inside that class I am using the following method:
    I'd appreciate if you could help for the EL Expression.
    Thanks
    protected void executeQueryForCollection(Object Object, Object[] bindParams,
    int i) {
    String userId = ((ApplicationModuleImpl)getApplicationModule()).getUserPrincipalName();
    try{
    getLdapInfo(userId);
    catch(Exception e) {
    sLog.debug("executeQueryForCollection: Userid = " + userId);
    if (bindParams != null)
    for (int j = 0; j < bindParams.length; j++)
    Object[] bindParam = (Object[])bindParams[j];
    if ("p_user_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_user_id, setting value to " + userId);
    bindParam[1] = userId;
    if ("p_emp_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_emp_id, setting value to " + employeeNumber_from_LDAP);
    bindParam[1] = employeeNumber_from_LDAP;
    if ("p_std_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
    bindParam[1] = studentNumber_from_LDAP;
    super.executeQueryForCollection(Object, bindParams, i);
    Thanks
    Syed

  • Question about external displays.

    Just curious about external display use with the macbook.
    I want to link up using DVI to DVI but I recently read that my external display will only show the same as the macbook display, and that i cant use the macbook display, and the external display as two seperate screens? but i read its possible to do on the macbook pro. Is this correct?

    I don't normally use my macbook with my primary display, but I have tried it out.
    I hooked it up via vga, rather than dvi though.
    It worked fine, but defaulted to mirrored. There is an option in the settings to disable mirroring, and use the macbook as the primary and the external as the secondary.
    I haven't found any way to swap them, and have the macbook as the secondary display.
    The management of the screens was pretty cool though. You can drag and drop the screens so their relative position is set up how you want it (over/under, left/right, etc).
    hope that this helps...
    -jamie
    MacBook 2.0GHz (white)   Mac OS X (10.4.7)  

  • How to default field values based on a sql query?

    I have a create form that has employee_id and supervisor_id fields. I am defaulting the employee_id based on the login info (no problem there). Now I want to default the supervisor_id also. Supervisor id is based on a sql query that takes the employee_id as a parameter for the where clause.
    How do I implement this in jDeveloper?

    I figured how to do this. I created a new EO, associated it to my base EO via association. Then put this code in the base EO's create() method:
    // Set supervisor id based on SupervisorEO
    SupervisorEOImpl supEO = getSupervisorEO();
    Number newSupId = supEO.getSupervisorId();
    setSupervisorId(newSupId);
    This seems to be the simplest.

  • How to display value based on LOV selection

    Hi,
    I have an editable table. On create operation one of the field is LOV, based on LOV selection the next field should be auto populated, please help me how to achive this.
    Thanks,

    Thanks for your reply........
    I did all these to get value based on LOV selection, but my problem is when i am trying to create a new record then everthing is working fine but normal search i am not getting the value of that attribute.
    below is my code
    Page:
    <af:column sortProperty="ProcessType" filterable="true"
    sortable="true"
    headerText="#{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
    id="c36" width="340px;">
    <af:inputComboboxListOfValues id="processTypeId"
    popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.ProcessType.label}"
    value="#{row.bindings.ProcessType.inputValue}"
    model="#{row.bindings.ProcessType.listOfValuesModel}"
    required="#{bindings.CmWeeklyProcesses.hints.ProcessType.mandatory}"
    columns="#{bindings.CmWeeklyProcesses.hints.ProcessType.displayWidth}"
    shortDesc="#{bindings.CmWeeklyProcesses.hints.ProcessType.tooltip}" inlineStyle="width:800px;"
    valueChangeListener="#{backingBeanScope.backing_app_CalcSchedules.weeklyDescription}"
    autoSubmit="true" >
    <!-- <f:validator binding="#{row.bindings.ProcessType.validator}"/>-->
    </af:inputComboboxListOfValues>
    </af:column>
    <!--value="#{row.bindings.Description.inputValue}" backingBeanScope.backing_app_CalcSchedules.description-->//If i use this value in the below property line then i am not getting value while creating time but if i done blind search then i am not getting any value in this field.
    <af:column sortProperty="Description" filterable="true"
    sortable="true"
    headerText="#{bindings.CmWeeklyProcesses.hints.Description.label}"
    id="c35" width="390px;">
    <af:inputComboboxListOfValues id="descriptionId"
    popupTitle="Search and Select: #{bindings.CmWeeklyProcesses.hints.Description.label}"
    value="#{row.bindings.Description.inputValue}"
    model="#{row.bindings.Description.listOfValuesModel}"
    required="#{bindings.CmWeeklyProcesses.hints.Description.mandatory}"
    columns="#{bindings.CmWeeklyProcesses.hints.Description.displayWidth}"
    shortDesc="#{bindings.CmWeeklyProcesses.hints.Description.tooltip}" inlineStyle="width:1000px;"
    readOnly="true" partialTriggers="processTypeId">
    <f:validator binding="#{row.bindings.Description.validator}"/>
    </af:inputComboboxListOfValues>
    </af:column>

  • Default a value based on the selection in the pop up

    Hi Experts,
    My requirement goes like this:
    We have a custom pop-up to display plant fields for a component at the item level. If the user selects the plant in the pop-up, then the plant should get defaulted at the item level plant field. The plant field is also a custom field.
    While creating the pop-up component, the binding has already been established between the two components.
    My question is:
    The pop-up component is different from the item view component. SO how to capture the event from the pop-up and code it to default the plant at the item level. How the code will be to call the value of one component from another.
    How to default the plant value at the item block.
    Thanks,
    Sangeeta.

    Sangeetha,
    Incase of pop ups, we need to specify a CLOSE EVENT HANDLER at the
    very same place where we call the pop up.
    gref_popup = me->comp_controller->window_manager->create_popup(
                          iv_interface_view_name = 'xxx/MainWindow'
                             iv_usage_name          = 'Cuxxxx'
                             iv_title = lv_popup_title ). 
        gref_ppg_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
      ENDIF.
    * Set the callback event on the imported controller
      gref_ppg_popup->set_on_close_event(  iv_view = me
                                          iv_event_name = 'POP_CLOSED' ).
    In this event handler(it will be created in the source component itself) , you need to capture the outbound plug information and the data on the pop up
    ASSIGN me->context->('AGREEMENT') TO <pointer>.           "#EC NOTEXT
      lr_target_node ?= <pointer>.
      IF sy-subrc NE 0.
        RAISE EXCEPTION TYPE cx_bsp_wd_incorrect_implement.
      ENDIF.
      CHECK lr_target_node IS BOUND.
      IF   account_popup IS BOUND.
    * get the result (list) from the search
        lv_fired_outbound =   gref_popup->get_fired_outbound_plug( ).
        CHECK lv_fired_outbound IS NOT INITIAL.
        lr_node =   gref_popup->get_context_node( 'PARTNER' )."#EC NOTEXT
        You can refer to any standard UI F4 value help and understand the logic behind.
      Regards,
      Masood Imrani S.

  • Question about modifying the Packet-based link into ASK modulation

    Hello everybody,
        Recently I learned the Packet-based link and I  modified it into ask scheme. But after I test the modified code, I find that it doesn't work as I image.
    I don't know why, can anybody help me about it?
        Thanks very much.
    Attachments:
    Packet-based Link(ASK).zip ‏445 KB

    I have a couple of questions that may seem silly, but...
    USB A = Windows DaRT 7.0 x86 for Windows 8 ISO burned
    USB B = Windows DaRT 7.0 x64 for Windows 8 ISO burned
    Is this a typo? You have it correctly above that where you list all 4 DaRT images, but not in the section I quoted.
    This TechNet article lists compatibility of DaRT versions:
    DaRT 8.1 supports Windows 8.1 and Windows Server 2012 R2.
    DaRT 8.0 supports Windows 8 and Windows Server 2012.
    DaRT 7.0 supports Windows 7 and Windows Server 2008 R2.
    DaRT 6.5 supports Windows 7 and Windows Server 2008 R2.
    DaRT 6.0 supports Windows Vista and Windows Server 2008.
    DaRT 5.0 supports Windows 2000, Windows XP, and Windows Server 2003.
    Also, did you use a Windows 8 ISOs with both DaRT versions? You need Windows 7 disks to create the DaRT 7 recovery disk.
    Let us know,
    Thanks
    David

  • Question about project plan value and  availability control

    dear expert:
    I had built a project, and with CJ30, Allocated budget is 10000, in one of  WBS element.
    I created  a network and internal activities,
    when I  assiged a material component (Res + PR) and system can be saved even if the total plan cost value is crossing the budget value.(There is no PR created, now. )
    But, Budget checking is showing error message that budget is exceeded when I created any external service activity and crossing the budget value.(There is also no PR created, now. )
    My question is: what is the difference of the two plan value? Why one is relevant to the budget,and the other is not?
    Note:1) the tolerance limit with ++ (all activity groups), usage say 100% & action 3 (error) to the budget profile. The budget prifile is considered with only overall budget.
    2)In tables COSP, "value types" are all 01 (plan), but VRGNG field values ​​are different, components plan is: KPPE
    Service activities are: KPPP
    3)in CJ30 u2013 Extras>> Availability Control>> Analysis. I could see the following in red colour, these values system not considering into account.
    Entries in this color make no contribution to the assigned value!
    V: Value type not relevant ( Act./Plan/Stat.Act./Stat.Plan/Commt)
    D: Delivery
    S: Settlement to object with no budget control
    R: Revenue cost element
    C: Cost element is exempt cost element
    M: Minimum from actual + commitment and plan per order value update
    P: Plan value is not on apportioned order / network
    B: Plan Costing Single Position
    S: Funds Commitment in Balance
    Following is for material
    COSP 2011 01 8001110100     0000000200 KPPE D RMB             200,000.00  RMB   B
    Following is for service
    COSP 2011 01 8001110400  KPPP D RMB                                10.00  RMB
    regard
    mao jian

    Hi,
    Its not per item category. If  N or L sytem will check the budget if in your system if proper GL's are maintained in OBYC settings BSX and GBB > VBR nad cost elelemtns are created for them. for this you have to cosult with your MM / CO consultant.
    PS is highly inteergratd with CO and all values are updated per cost elements. If values are not updated in cost elements then budget chek wil not happen.
    In you case for material values may be updated in cost elements due to improper OBYC setting so budget check was not done.
    Chekc your OBYC setting and try to create material PR system will check for the budget.
    Check and confirm.
    regards,

  • Questions about Thunderbolt Display

    Hi there,
    I'm thinking about buying a 27" Thunderbolt Display to accompany my 15" Macbook Pro. Basically, the current MBP screen is a little small for some of the tasks I'm currently undertaking. The specs of my Macbook Pro are:
    - 2.3GHz i7 Quad Core
    - 8GB RAM
    - AMD Radeon HD 6750M with 1GB VRAM
    - Running the latest version of Lion.
    I was wondering if anyone can advise of the kind of performance I can expect from the 27" Thunderbolt display if it is hooked up for the following tasks that I use my computer for:
    - General day to day internet use and Microsoft Office For Mac use.
    - Editing HD movies in iMovie (and potentially at a later date, Final Cut X).
    - Recording music in Logic Studio 9.
    - Web coding in Dreamweaver CS5.
    - Photo Editing in Photoshop CS5.
    - Graphics creation in Fireworks and InDesign CS5.
    - Running a game like X Plane 10.
    - Running Bootcamp with Windows 7 and games like Flight Simulator X.
    - Running a game like Football Manager 2012.
    - Watching movies.
    Ideally I'd want to be running the above tasks in full screen mode.
    How would the MBP cope with upscaling the above tasks to the full resolution of the Thunderbolt screen, with good graphical performance on the video editing and games specifically? Ideally I'm hoping for literally no loss in quality.
    Any help with this would be greatly appreciated.
    T

    I've looked into it more and according to this (http://www.apple.com/macbookpro/specs.html) my graphics card supports an external display to the maximum of 2560 by 1600 pixels which should be enough for the Thunderbolt Display considering it's native resolution is 2560 by 1440 pixels.
    My question now is though, will the performance of things like video editing of moderate gaming be good on the TBD at full resolution?

  • Determination of default characteristics values based on Company Code/Plant

    Hi All,
    We are using batch management and classification.  We have defined various Characteristics and maintained values for it.
    As per our business process, we create Purchase Order (which may contain many line items) and after that we receive the Goods thru MIGO.
    At the time of MIGO user need to enter all the Characteristics of the batch. Out of no. of characteristics few are mandatory and also have got same value (depends on Company Code/Plant).
    Currently there is no provision to maintain default values of the characteristics at Company Code / Plant level. Due to this user have to maintain same values again and again at the time of MIGO for each line item/batch. So please suggest us the solution where user need not to enter same values for respective characteristics during MIGO and we can save lot of time and it will help to improve the efficiency.
    We also tried to explore the provision of making u201CDefault Valueu201D in CT04, but then that value was getting applied for all the Company Code / Plant which we donu2019t want.
    Regards
    Nilesh

    you have to valuate the characteristics with  Object Dependencies
    http://help.sap.com/saphelp_bw/helpdata/en/24/4766d4416711d189ec0000e81ddfac/frameset.htm

  • Just switching from a PC to MacBook Pro - question about Safari display

    Hi,
    I am sorry for such a simple question, but if anyone has a moment... we have the new 15 inch laptop, but when accessing a website, the display does not fill up the whole screen. In other words, I can still see quite a bit of the background (wallpaper?) and it just seems to me that it could fill up the screen more than it is. The website doesn't matter - Yahoo, Apple, all the sites are displaying at the same size. Is there a way to adjust this? Thanks.

    Grab the title bar and drag the window to the upper left, then grab the bottom right corner of the Safari window and drag it larger.
    Alternatively, click the green dot at the upper left - that's a bit different than the Windows 'maximize' in that in Mac OS X, that button enlarges the window in a content-sensitive manner (i.e. makes it large enough to display the full content of the window, within the limit of your monitor). That means that, depending on the web page, the window may fill the screen vertically, horizontally, both, or neither (it will leave space for the Dock, though).
    Hope that helps...

  • Display Values Based on Flag

    version oracle 10g
    hi i have a template in a variable and i need to show or hide some lables based on some values.
    i have an example below .copying the output of the below example.
    i have many lables which i need to show or hide based on the label values. please let me know the solution..
    /* Formatted on 2010/07/08 20:50 (Formatter Plus v4.8.8) */
    set serveroutput on;
    DECLARE
       v_content   VARCHAR2 (4000);
       v_mflag      VARCHAR2 (1)    := 'N';
       v_cflag      VARCHAR2 (1)    := 'Y';
       v_template   varchar2(4000)   :=
                                           'Date            :mail_dt
                                            Dear            :cust_name
                                            Request Number  :vzb_track_no
                                            Order Number    :ord_no
                                            Order Activity  :ord_activity
                                            Product         :prduct
                                            Managed         :managed
                                            Cpe             :cpe_ord';
    BEGIN
       v_content := replace(replace(replace(replace(replace(replace(replace(replace(v_template,
                ':mail_dt',sysdate),
                ':cust_name','Steven'),
                ':vzb_track_no','ABC123'),
                ':ord_no','XYZLKJHGVC'),
                ':ord_activity','Assigned'),
                ':prduct','Phone'),
                ':managed',v_mflag),
                ':cpe_ord',v_cflag);
                dbms_output.put_line(substr(v_content,1,254));
                dbms_output.put_line(substr(v_content,255,499));
    END;Out put
    Date                    08-JUL-10
    Dear                    Steven
    Request Number   ABC123
    Order Number      XYZLKJHGVC
    Order Activity      Assigned
    Product              Phone
    Managed            N    -- i dont need this row
    Cpe                   Y        

    new learner wrote:
    Out put
    Date                    08-JUL-10
    Dear                    Steven
    Request Number   ABC123
    Order Number      XYZLKJHGVC
    Order Activity      Assigned
    Product              Phone
    Managed            N    -- i dont need this row
    Cpe                   Y        
    You can strip the row prior to the REPLACE statements;
    DECLARE
       v_content   VARCHAR2 (4000);
       v_mflag      VARCHAR2 (1)    := 'N';
       v_cflag      VARCHAR2 (1)    := 'Y';
       v_template   varchar2(4000)   :=
    'Date            :mail_dt
    Dear            :cust_name
    Request Number  :vzb_track_no
    Order Number    :ord_no
    Order Activity  :ord_activity
    Product         :prduct
    Managed         :managed
    Cpe             :cpe_ord';
    BEGIN
       if v_mflag = 'N' then
         v_template := regexp_replace(v_template,chr(10)||'.*:managed');
       end if;
       v_content := replace(replace(replace(replace(replace(replace(replace(replace(v_template,
                ':mail_dt',sysdate),
                ':cust_name','Steven'),
                ':vzb_track_no','ABC123'),
                ':ord_no','XYZLKJHGVC'),
                ':ord_activity','Assigned'),
                ':prduct','Phone'),
                ':managed',v_mflag),
                ':cpe_ord',v_cflag);
       dbms_output.put_line(v_content);
    END;
    Date            10-07-08
    Dear            Steven
    Request Number  ABC123
    Order Number    XYZLKJHGVC
    Order Activity  Assigned
    Product         Phone
    Cpe             Y

  • Formula to Display Value Based on Another Field's Value

    Hello,
    I have a column that displays the vehicle used for drives, but the report also lists fixed sites that do not have a vehicle assigned.
    What I'm trying to accomplish is to utilize a formula but I'm having trouble with getting it to work. What I've got is:
    if {CenterDetail.CenterType}=0 then {MobileSetupMaster.ShortDesc}
    else
    I'm not sure what to place in the else statement to make the value equal to null.
    Suggestions?

    hi Trey,
    are you just trying to show an empty formula or an actual null.
    if empty, then
    if {CenterDetail.CenterType}=0 then {MobileSetupMaster.ShortDesc}
    else ""
    will work.

  • Simple beginner question about default tables (LOGMNR, etc.)

    Hi all, I just installed SQL Developer and the Express server. I have worked with other SQL databases and with remote Oracle databases. But never been a DBA for an Oracle DB. I tried searching on LOGMNR and AQ$_, but couldn't find anything, hence this question.
    If there is some online documentation that covers these particular tables and my question, then a pointer to that would be appreciated.
    Anyway, I created a connection per the instructions and it seemed to work. But when I look at tables listview, I see a whole slew of tables. I assume these are all housekeeping/meta data tables (eg. information_schema in MySQL). Is this correct?
    Also, short of manually creating a filter for each of the file types ("%$%"help", "LOGMNR%", "SQLPLUS%", etc.), is there an easy way to ignore these tables and just see the tables I want to create for testing purposes?
    And I am curios why these all show up by default. Could it be that I am expecting something because of experience with other databases and am actually doing things the "wrong" way? Or is this just because I am using the Express Server? Or is there another (very good) reason for these tables to exist?
    Thanks,
    justme

    The complete oracle documentation is at http://tahiti.oracle.com. There is a lot of it, but Log Miner and Advanced Queuing have their own manuals. You should also consider starting with the Concepts Manual followed by one of the "2-day" tutorials such as "2-Day DBA"
    What user are you connecting as? It sounds as if you are connecting as SYS or SYSTEM if you can see the dictionary tables.
    You should create a separate user to connect as.
    (create user myuser identified by mypassword;
    grant connect,resource to myuser;)

  • Question about default wallpaper settings on new iPhone

    The default wallpaper for the iPhone 3GS is planet Earth. I was wondering if the option for "camera roll" (to use as wallpaper) is there by default...or is it added there after you take your first photo or only after you use a photo as wallpaper the first time.
    Strange question, I know.
    Thanks

    Page 142 of the user manual:
    Wallpaper
    You see a wallpaper background picture when you unlock iPhone. You can select one of the images that came with iPhone, or use a photo you’ve synced to iPhone from your computer.
    Set wallpaper: Choose Wallpaper and choose a picture.
    Settings>Wallpaper

Maybe you are looking for

  • Smartforms error 173

    I would like to know how to solve the following error in smartforms: Error number: 173 Message     : "Table does not fit into window." Exception   : FORMATTING_ERROR Message ID  : SSFCOMPOSER I am trying to fit a main window and another window in a t

  • Please help !! stopAllSounds();

    Hi all, i'll come straight to the point ! you have 5 buttons.swf and 1 HTML page. If you put these all 5 buttons into a HTML page and click on any button.swf it plays some audio. but if you hit any other button the first one doesn't stop eventhough a

  • Making video chat faster

    I have SL and my mom has Leopard. I am using a fast Cable connection, and she has ordinary DSL. Sometimes video and audio gets choppy. Both of us are on Wi-Fi using Intel Macs. Anyway you can suggest we try to make video faster? Thanks, John

  • Numbers App or better than Mint!

    Can someone recommend an app that can be exported into pre-established numbers spread sheet? or excell??? I like to keep track of my cash expenditures, for deductions....Mint is not right for this and Quick Bank exported into non mac friendly text do

  • InDesign C3 won't start as one user

    Hi there, I have just brought the new MacBook Pro 15 inch 2 GHz Intel Core i7. I did the normal migration from my old MacBook Pro 15 inch. Both old an new have are running on OS 10.6.7. When I wanted to start, on the new Mac, InDesign C3 it gets bloc