Rules for applying discounts based on dynamic values

Hi there!
I´m studying the discount features offered by the weblogic portal and I was puzzled by a limitation on the platform that I could not solve. If I have two discounts that could be applied in an item and I want to decide between them based on runtime values (discount value, order total price, etc...) how can I do that ? And if they are cumulative discounts that could be applied in a single product in my shopping cart and are of the same type (item discount or order discount or freight discount), can I do that ? I could not see a way of doing that without beeing intrusive(reimplementing internal classes) or doing it externally creating my own custom classes... Does anyone see a way of doing that ? (I´m using WLP 8.1 SP 3)
thank´s for your help,
EE
Message was edited by:
eduardo.earp
Message was edited by:
eduardo.earp

based on user authorizationThat is already standard Apex functionality.
and values in a tableYou can use jQuery to hide a tab. So, you create a tab in Apex, but hide it when necessary when running the page. Something like:
if (<some condition>) {
   $("#tab_id").hide();
};Put this in the "Execute when Page Loads" in the JavaScript section on the Page definition.

Similar Messages

  • F4 help for select options based on parameter value

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

  • How to define an aggregation rule for a dimension based on bridge table?

    Hello,
    I need a solution for aggregating data correctly when using a dimension based on a set of dimensione tables containing a bridge table. Please find below a description of my business case and the OBIEE model which I’ve created thus far.
    Business Case
    The company involved wants to report on the number of support cases, the different types of actions that were taken and the people involved in those actions. One support case will undergo a number of actions (called ‘handelingen’) until it is closed. For each action at least one person is involved performing a specific role, but there can also be multiple persons involved with 1 action, each performing a different role for that action. This is the N : N part of the model.
    The problem that I face is visible in the two pictures below:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/sample.png
    As long as I don’t include anything from the Dimension Meelezer in my report, I get the correct number of handelingen (7). When I include the person (called ‘Meelezer’), the measuere per action is multiplied by the number of persons/roles involved with that action.
    When I changed the Aggregation rule in the report column #Handelingen to ‘Server Complex Aggregate’ I do get the correct endtotal:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/sample2.png
    I believe it should be possible to define in the repository a different aggregation rule for individual dimensions, but I’ve not been able to achieve this.
    Explained below is what I have created in my Physical and Business Model & Mapping layers:
    The Physical Model is built like this:
    (This is just a small part of a much larger physical model, but I’ve only included the most relevant tables)
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/PhysicalDiagram-1.png
    The Fact table (ALS Feit Zaakverloop) contains FK’s for the action (FK_HANDELING, joined to ALS Dim Handeling), the date the action took place (FK_DATUM_ZAAKVERLOOP, joined to ALS Dim Datum Zaakverloop) and the uniqe group of people involved (FK_MEELEZERS, joined to ALS Groep Meelezers) and a measure column (SUM_HANDELINGEN) populated with the value ‘1’ for each row.
    The Bridge table (ALS Brug Meelezer/Reden Meelezen) contains three FK’s: FK_GR_MEELEZERS (joined to ALS Groep Meelezers), FK_MEELEZER (joined to ALS Dim Functionaris) and FK_REDEN_MEELEZEN (joined to ALS Dim Reden Meelezen).
    The Business Model
    In the business model, the four physical tables for the N:N relation have been combined into one logical dimension table.
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/BusinessModel-1.png
    DIM Meelezer contains one LTS in which the four physical tables have been combined:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/LTS1.png
    And all the required locical columns have been created:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/LTS2.png
    DIM Meelezer has also been identified as a bridge table and a Business Key has been defined on a combination of the FK’s in the bridge table and business codes of the two dimension tables.
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/BMDIM.png
    Next a hierachy was created for Dim Meelezer:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/Hier.png
    In Feit Zaakverloop, a measurement called ‘# Handelingen’ was created using SUM_HANDELINGEN, with an aggregation rule of SUM.
    In the LTS of both the DIM Meelezer and Feit Zaakverloop, the Logical Content Levels have both been set to: LVL Detail – Meelezer.
    Please provide suggestions that will NOT require changes to the physical datamodel as they would require too much time to achieve (or at leats would not be ready before my deadline.
    Thanks!
    Edited by: The_Dutchman on Dec 13, 2011 11:43 AM

    Hmm, no replies yet...
    Am I in 'uncharted territory' with this issue?

  • Insert a number of rows for tabular form based on frequency value

    Hi,
    I have a page with two search items.
    Based on the values in the search item, a report is created as tabular form.
    The information displayed has a frequency column.
    Values for frequency can be Q, Y, M, D
    I would like to know if it is possible to to load the form with a standard numbers of row depending on the frequency.
    Example: If frequency is Q ,then when i click the go button in the search region, the tabular shoud load with the information displaying 4 rows, even if the information returned is less than 4 rows.
    If frequency is Y ,then when i click the go button in the search region, the tabular shoud load with the information displaying 2 rows, even if the information returned is less than 2 rows.
    When no data is found, the form should load displaying a number of empty rows depending on the frequency.
    Thanks

    Following this example:
    http://apex.oracle.com/pls/otn/f?p=31517:209
    you should be able to achive that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • ADF Pivot table - determining aggregation type based on dynamic value items

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

  • Setting default value for a jcombobox based on the value not the index

    I am trying to set the default value for my combobox to the current year. One way I thought of doing it was to get the index of the value representing the current year and then use setSelectedInex to make it the default. Any ideas?
    The relevent section of code is below.
    GregorianCalendar gregorianCalendar = new GregorianCalendar();
    int year = gregorianCalendar.get(Calendar.YEAR);
    String currentyear = year + "";
    int startyears = 2000;
    int numyears = 25;
    JComboBox endyearcombobox = new JComboBox();
    endyearcombobox.setBorder( BorderFactory.createLineBorder(Color.DARK_GRAY));
    endyearcombobox.setFont(standardfont);
    endyearcombobox.addActionListener( new ActionListener() {
    public void actionPerformed( ActionEvent event ) {
    endyearcombobox = ( JComboBox )event.getSource();
    endyear = endyearcombobox.getSelectedItem();
    boolean same = endyear.equals(oldItem);
    oldItem = endyear;
    String[] endyearlist = new String[numyears];
    for(int i = startyears; i < startyears+numyears; i++){
    String item = new Integer(i).toString();
    endyearcombobox.addItem(item);
    Thanks
    Ged

    Thanks mate,
    That was what I was looking for. I still had a little more manipulation to do, but sent me on the right track and have got it working now. I don't know why I didn't think of it in the first place.
    Ged

  • [solved]DWM rules for opening terminal based apps

    These are the rules that I have in my dwm config.h
    The ncurses apps that open in the terminal do not follow the rules. How can accomplish this?
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 3, False, -1 },
    { "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
    { "ranger", NULL, NULL, 1 << 6, False, -1 },
    { "mutt", NULL, NULL, 1 << 7, False, -1 },
    { "ncmpc", NULL, NULL, 1 << 8, False, -1 },
    Last edited by derrickcope (2015-05-02 05:26:14)

    thanks for the suggestion. xprop just sees them as "terminator". When I start them with -T "title" then xprop sees them with "title".
    When I used the -T switch in .xinitrc and then changed my rules to
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 3, False, -1 },
    { "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
    { "ranger", NULL, "ranger", 1 << 6, False, -1 },
    { "mutt", NULL, "mutt", 1 << 7, False, 2 },
    { "ncmpc", NULL, "ncmpc", 1 << 8, False, 2 },
    They are still opening on the first monitor and not on the tag I set. I am not sure I am doing it correctly. Should I write terminator as the class?

  • Rules for applying source data when using the art history brush

    I am trying to discover if a Snapshot made with the History feature can be used by the Art History Brush on more than the Snapshot's corresponding layer.
    So,  I have an image with a background layer and a copy of that background layer - two layers.  I then make a Snapshot from the second layer and apply a fill colour to the second layer.  Next I paint on that filled layer with the Art History Brush.  Now here's the issue - having completed painting on that second layer I would like to be able to duplicate that second layer so it becomes a third layer and paint on to it with the Art History Brush using a new brush type but the same original Snapshot.  My experience so far is that the Art History Brush and History function will not allow me to paint with the original Snapshot on this duplicated layer.  In other words, you cannot paint on to the third layer using your original Snapshot.
    Is this correct, please?  I had hoped that the snapshot I originally made would be available to use with the Art History Brush on any layer in your layer-stack but this seems not to be the case.  It will only work with the layer from which the original Snapshot was created.
    I can of course create a new snapshot of the duplicated, painted second layer - now called the third layer - but this only enables me to paint with the image in the second layer (from which the second Snapshot has been created).  I want to be able to paint on to the third layer with the original Snapshot but this it will not let me do.
    If anyone is kind enough to read through all this and follow my exposition I'd be really grateful to know if my understanding is correct.
    Thanks.

    If you don't make the new snapshot with the icon but with the palette menu, you will get a window with 3 options.
    Try which of the three solves your problem.
    Sorry, my  menu is in german, but you see the position.
    :-) miss marple

  • Hot spot for field based on field value

    Hi,
    Im using ALV list to display report. And I have enable hot spot for that field based on field value. For example, If the field has value " 0 " then hotspot should be enabled for that field. If the field has value " 1 " then it should be displayed as normal field without hotspot.
    Can anyone tell me how to do this?
    Thanks,
    Amal

    Hi Amal
    Do this
    In your final internal table
    add a table type
    gi_cellstyles TYPE lvc_t_styl
    Then (while populating output)
    FORM prepare_edit_output.
    * say your field is 'field'
      DATA : lw_stylerow TYPE lvc_s_styl,
             li_styletab TYPE lvc_t_styl.
      IF gw_output-field = '0'.
        CLEAR lw_stylerow.
        lw_stylerow-fieldname = 'FIELD'.
        lw_stylerow-style     = cl_gui_alv_grid=>mc_style_hotspot.
        APPEND lw_stylerow TO li_styletab.
      ELSEIF gw_output-field = '1'.
        CLEAR lw_stylerow.
        lw_stylerow-fieldname = 'FIELD'.
        lw_stylerow-style     = cl_gui_alv_grid=>mc_style_hotspot_no.
        APPEND lw_stylerow TO li_styletab.
      ENDIF.
      INSERT LINES OF li_styletab INTO TABLE gw_output-gi_cellstyles.
    ENDFORM.
    In your layout building
        gw_layout-stylefname = 'GI_CELLSTYLES'.
    Pushpraj

  • Lookup rate based on reported value

    Hello Experts,
    I have a new supplement where users should be able to select a month for which some specific accounts should be translated at that months close rate.
    So during reporting of 2010.MAY the user might select that the accounts should be translated at 2010.FEB Close rate. In the time dimensions i have one property TIMEID so i can send in the value 20100200 on one account.
    But my problem is that i don't know how to be able to make the lookup collect the end rate for 2010.FEB based on the value 20100200?
    If you know how that can be done or have any idea for another solution it would be very appriciated.
    Thankyou and Best regards,
    Jonas

    Hi Jonas,
    It will be difficult in that way. Because you need to do lot of customizations in your K2 logic to capture the user input and then pass it to the script logic through selections.
    The better way would be to prompt the user with the list of the time dimension members. The user will select a member from there.This will be automatically stored in the variable %TIME_SET%. This variable can then be used in your script logic.
    Hope this helps.

  • LOV-Dynamic value selection

    I am executing following query for LOV in APEX or HTML DB 2.0
    IF :P2_TX_ID IS NOT NULL THEN
    RETURN
    'SELECT TX_UNIT_NAME
    FROM TRANSPLANT_UNIT
    WHERE TX_ID=:P_TX_ID';
    ELSE
    RETURN
    'SELECT TX_UNIT_NAME
    FROM TRANSPLANT_UNIT
    ORDER BY 1';
    END IF;
    When I run the application, it always goes to ELSE loop as condition is executed when I am runing application. I want first page to be displayed and then I enter value for :p_TX_ID and based on the value of column, I should able get the query set result.
    This was very simple in Forms and Reports (D2K or Developer 2000). How to achieve the same in Oracle Apes?

    APEXDeveloper,
    Since :P2_TX_ID is a PopupLOV item, it doesn't automatically submit the page. As a result ur item value is not getting set in the session. I am not sure of the context of ur application, but could u add a button something like 'Set Values' and create a submit process on that and make the page branch to itself? And then after the values are set, u can run ur query and it will grab the value of :P2_TX_ID from the session.

  • Defaulting rules for subinventory locators

    hi folks,
    i have researched a little bit, but am unable to figure out if oracle r12 has this capability inherent. before i move on to a forms-personalization / custom.pll based solution, i would like your expert opinion.
    i am in need of providing the ability to default a "stock locator" on the "subinventory transfer" form. a subinventory could have several locators, and a locator could have several types of items. does r12 provide any way to default a particular value for "stock locator" based on the value selected in the source or destination subinventory?
    thanking you,
    regards.

    Form personalization does not have when-validate-item event so it is a little hard to default field2 (locator) after field1 (subinventory) value has been entered / changed.
    But in your case, since there is already an LOV attached to the locator field, you can try the following.
    Find the LOV and Record group associated with the locator field.
    Create a new record group similar to the seeded one but add the condition that says
    "locator_id = mtl_secondary_inventories.attribute5" -- assuming attribute5 stores the default locator id
    And then assign this new RG to the LOV.
    If all else fails, you can always write a when-validate-record personalization that fires AFTER user has selected a non-default locator and then stops him/her from saving the record.
    Hope this helps,
    Sandeep Gandhi

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • FICA: Clearing rules for account maintenance & auto clearing to apply credits against unpaid security deposits regardless of due date

    Hi Folks,
    We have a requirement in FICA clearing rules to apply the payment against unpaid security deposit irrespective of the due date. I have the below rule configured as the first step in my clearing variant.
    Grouping String: 019 (statistical indicator); Grp Rule: 3; Char Value: H (security deposits); AIRI: 4;  Group: 019
    Sort characteristic: 010 (Due date); Rank: 3; Char value: H; Rank: 1
    I have maintained the corresponding clearing variant in all the clearing types (account maintenance, automatic clearing, and incoming payments); Clearing rule is working perfectly during payments, however for account maintenance and automatic clearing it's not applying the credits against security deposits first. I still see that the items are cleared only based on due date;
    Am I missing something here? Please share your suggestions.
    Thanks,
    Santosh

    Santosh:
    This rule will not work in account maintenance.  You would need to include the data about the credits into your grouping criteria in order for that to work.  Most clearing rules do not work for account maintenance as they do for payments.  You probably need to have a separate variant with a rule not based on statistical indicator, but rather based on transaction value or maybe create your own custom grouping via TFK116.
    regards,
    bill.

  • Plot a chart dynamically based on the values selected

    Hi All,
    I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
    Thanks in Advance

    Hi,
    Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
    As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
    Thanks,
    Sanjay

Maybe you are looking for