URGENT: Mask on Total value

Hi all,
I have a customer who needs to format the Total value on a classic table to show it with 4 decimal places like this 10,500.0000. In order to achieve such requirement I tried the following code in 'processRequest' method, but no success.
OATableBean tableBean = (OATableBean)webBean.findChildRecursive("AllocationDataTable");
if(tableBean != null) {
tableBean.prepareForRendering(pageContext);
OAMessageStyledTextBean total = (OAMessageStyledTextBean)tableBean.findChildRecursive("UnitLandedCost");
if (total != null) {
oracle.cabo.ui.validate.Formatter formatter = new OADecimalValidater("#,##0.0000;#,##0.0000","#,##0.0000;#,##0.0000");
total.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
Please, can anyone comment what is wrong? Workarounds?
Thanks.
Eduardo

I did manage to solve this. My fields are VARCHAR2 to start with. So in the AM I save the final tota for the column in a view table (SprintTotals) .
Then in the controller, I retrieve the saved total.
OAViewObject voRow = (OAViewObject)am.findViewObject("SprintTotalsVO1");
voRow.setWhereClause(null);
voRow.executeQuery();
Row row1 = voRow.first();
String docs = "";
if(row1 != null )
System.out.println("in calls");
docs = (String) (voRow.getCurrentRow()).getAttribute("*Totalcurchg*");
System.out.println("docs = " + docs);
//The following code handles the formatting
OAMessageStyledTextBean regUSDAmtBean=(OAMessageStyledTextBean)webBean.findIndexedChildRecursive("*Totalcurchg*");
Formatter formatter2 = new OADecimalValidater("$#,##0.00;($#,##0.00)","$#,##0.00;($#,##0.00)");
regUSDAmtBean.setAttributeValue(*ON_SUBMIT_VALIDATER_ATTR*, formatter2);
This line displays the total value for the field. It uses the actual value that is stored in docs
regUSDAmtBean.setAttributeValue(*TABULAR_FUNCTION_VALUE_ATTR, docs* );
This setting allows for the dollar sign in the column data and the total value. This procedure requires that the EO is defined first.
The only problem I have let is right aligning the total value.

Similar Messages

  • Any method to mask the "Total" in the form of Delivery?

    I have tried to create a picture box to mask the "Total" value (UI),when I resize the form , the picture box become transparent!!! Is it prossible to mask a field in the form using UI?

    Just access the total textfield and make it visible = false;
    oForm.Items.Item("29").Visible = false; //The field
    oForm.Items.Item("30").Visible = false; //The label
    If that doesn't work try setting the left property to something that will never come into view no matter how large you make the window... Something like this
    oForm.Items.Item("29").Left = 5000; //The field
    oForm.Items.Item("30").Visible = 5000; //The label

  • *urgent* Alternate colors for Grand total values

    Hi all,
    I have 1 dimension column and 4 fact columns. Here I perform Grand total for the request .
    The requirement is :---
    I need alternate colors as background for the Grand total values.
    Am trying to modify the XML in Advanced tab .
    I tried to do it by using combine request .
    Please help on this . Urgent .
    Thanks a lot in advance for every reply .

    Please give some suggestions.

  • Problem in formatting Total Value in advanced table

    I want to format Total Value for each column to USD format i am able to do for Column values but for Total Value i am not able to make it, i reffered all the previous threads and tried nothing worked out, can any one help me out its very urgent
    Thanks
    Babu

    First thing is as Tapash has pointed out, How did you do it which is not working? Second point is that there is straight forward mention of this scenario in Advanced table section of the Dev guide. Have a look.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • FM for Planned Total values of a WBS

    Hi All,
    Looking for an FM which can give me Planned Total values of a WBS element (that means, of that particular WBS element and all the objects below that WBS, including WBS, activities, etc.) just like this figure is calculated in CJ40 "Planned Total" column.
    Reply asap as this is urgent requirement.
    Thanks.

    Hi Aditya,
    see if the below FMs help you in any way
    CK_F_COST_ROLLUP
    KBPP_EXTERN_UPDATE_CO
    KBPR_READ_DATA
    Cheers
    Sammar

  • Format the total value in the column of the graph table

    Hello all,
    I have a graph table and I need to format the total value in the column of the table.
    I am trying to find my table bean with the code below but it's not working in the processRequest. Is there anything else that should be done?
    // Get the graph
    OAGraphTableBean graphBean = (OAGraphTableBean)webBean.findChildRecursive("MyGraph");
    // Get the table
    OATableBean tblBean = (OATableBean)graphBean.findChildRecursive("MyTable");
    The tblBean is null in the processRequest. In the processFormRequest the tblBean is not null.
    Thanks and Regards,
    Andrea

    Hi,
    The code OAGraphTableBean graphBean = (OAGraphTableBean)webBean.findChildRecursive("MyTable"); does not work because in this case I am getting the table but casting to a graph.
    The MyTable bean is a child of MyGraph.
    When creating a graph bean we have the option to create a table as a child (select your graphTable region in the Structure pane, and choose New > tabularFormat - to create the table).
    The table bean child I can get just in the processFormRequest, but the graph I can get in both processRequest and processFormRequest.
    I need to get the table bean in the processRequest to format the total value column.
    Do you know if is there anything else that should be done to format the total column?
    Thanks and Regards,
    Andrea

  • How can I get the total "values" in a hashtable ?

    i know that i can get the total values in a hashtable by hash.elements() method. It returns an
    enumeration with all the values present in this hashtable. this is fine upto here.
    Now the preoblem is:
    According to what rule this enumeration will be returned. I mean..
    If i added in key A with value a,
    then key B with value b;
    then key C with value c;
    then key D with value d;
    (They all are objects of type String)
    now i call ... hash.elements(); Suppose it returns Enumeration enum;.
    Now in what order they all are present in this hashtable.
    Meaning is that if i move arond this enum in what sequence they all will be returned.
    option A ) In the same order as they were inserted in hashtable.
    option B ) According to LIFO;
    option C) There is no fix rules , simply it return all the elements and u cannot judge that the first element in enum was really the first element inserted in the hashtable and the second element of enum was really the second element inserted in the hashtable.
    What do u think..which option is correct ?
    Ny idea will highly appreciated.
    Thanks in advance.
    Sanjeev Dhiman

    hi, i am again..
    boss ! this is not true..u just change the order and or change the keys and something like ...
    "Sanjeev", "hello"
    "Dhiman", "hi"
    "Technosys" ,"Services"
    u will find that its not LIFO..really i was thinking before coding my project that option A is correct and with knowledge i wrote 3 - 4 classes but when i run the programm its starts throwing errors.
    so, i posted this question. I think "apppu" is right.
    I think , firstly hash is calculated for each value and that value is returned which can be received in a fastest way and hence not necessarily in LIFO and FIFO..
    Thanks to u also as u gave ur precious time for me.
    Once again.
    Thank you very much.
    Sanjeev Dhiman

  • How to get total value from checkbox list?

    I have a list of checkbox items - all number values. I want to then get the total value from all of the check items and add that value to the database. Can this be done?
    Also, anyone know of one source where I can get detailed information on how to best use Web Apps and all of it's possibilities and limitations? Most of the tutorials that I have seen so far say that you can do most anything with Web Apps; however, the tutorial examples leave a lot of questions unanswered. I saw that Adobe has an article that shows how to build a basic web app and that it is "part 1" in a series. Anyone know where to find parts 2, 3, etc?
    Thanks,

    Hi there,
    Good day, i hope this will give you some ideas
    for example this is your html
    <input type="checkbox" name="test" value="1">1
    <input type="checkbox" name="test" value="2">2
    <input type="checkbox" name="test" value="3">3
    <input type="checkbox" name="test" value="4">4
    and this is your jquery script
    <script type="text/javascript">
    jQuery("input@[name='test']").click(function() {
        var istrue = jQuery(this).is(":checked");
        if(istrue == true) {
            var urvalue = jQuery(this).val();
            alert(urvalue);
    </script>
    hope this helps you

  • Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Hi sashby51,
    I've moved your discussion to the PDF Forms forum--the folks who visit this forum regularly should be able to point you in the right direction.
    Best,
    Sara

  • Changing totals value in hierarchical alv for a particular level/row

    Hi,
    I am displaying a hierarchical ALV having 4 levels.
    Using field catalog, totals for all dynamic columns are found out.
    I have a requirement not to display totals value for first and second levels.
    And if possible, to display another value.
    Tried using CL_GUI_ALV_TREE->change_node.
    But it not updating.
    Please suggest a solution.
    Thanks,
    Nisha Vengal.

    Hi Ten Mariga,
                     I wonder why the second select Query is needed at all instead you can use
    ---> Not Needed
    FORM DATA_RETRIEVAL1.
    SELECT * FROM zcontact INTO TABLE it_zcontact WHERE id EQ wa_zcontact-id.
    ENDFORM.
    ----> Instead you can do
       READ TABLE it_zcontact INTO wa_zcontact INDEX p_seltab-tabindex.
      Append wa_zcontact to Second_table.
    And you can use the Second_table to display the second ALV. The second Select Query will affect the performance too.
    Cheers,
    Krishnakumar B.

  • How to Show total value in the header 2nd page but based on 1st page footer

    How to show total value in header in report builder but i have the total have related with the total in footer.
    Example
    ===============================================
    Page 1
    Empno Ename Sal
    1 Scott 1000
    2 ALlen 2000
    3 Susi 1000
    Total Sal Page 1: 4000
    ===============================================
    Page 2
    Total Sal Page 1: 4000 --> How to get it?????
    Empno Ename Sal
    4 Budi 1000
    5 Roger 200
    6 George 2000
    Total Sal Page 2: 3200
    Please Help..
    Thanks

    hmm .. what i would do is
    - create a placeholder column
    - create a field in the header and one in the footer
    - have the footer field reference the summary column
    - have the header field reference the placeholder column
    - create a fromat trigger on the footer field to
    store the value of the footer into the placeholder column
    so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
    there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
    thanks,
    ph.

  • Unable to read the total value.

    Hi guys,
    I am able to get the total for alv table column.. but i want to display the total value  in some other text view field.
    In order to do that... first i have to read the total value, and have to set the same to text view field,
    total value is of type   ( DATA: LV_AGGR_RULE TYPE REF TO CL_SALV_WD_AGGR_RULE. )
    but my text view field attribute is of STRING TYPE.
    So am getting conversion error. Pleas help me in this.
    Regards
    Farooq
    Edited by: farooq basha on Jun 13, 2011 12:52 PM

    Hi ,
    Try to loop your internal table on the column "Amount" and make a sum for that particular column, u will get the required sum Amount..
    Thanks
    Aisurya

  • Free sample sales - Control for Total Value

    Dear all,
    In our sales free process we configured
    a condition type Z100 Net value
    and condition record maintained with Key
    Customer / Material / Plant
    Higher authority is maintaining teh condition reocrd for one day.
    10000/ Fg123456 / h210 - 100 % 12.8.2011 12.8.2011
    and It will come in the sales order and the Total value will get knocked off by Z100 condition type.
    But in this user can enter any number of quantity in the day and product can be dispatch as free sample.
    Now we want here
    The Basic value (multiply by qty) of the sales order should not go beyond Rs 5000/-
    It should be restricted.
    Or can we have some release strategy so that Rs 5000 marketing manager can release,
    5000 - 10000 COO and above CEO.
    Please suggest me, even the full process need to changed also OK for us.
    Thanks and Regards,
    Mani

    Hi Mani,
    As explained already, through user exit MV45AFZZ, you can acheive the block.
    for your 2nd part, you can get a z-report develop to check the orders that are blocked with this specific delivery block and their net value and item details. Allow the business user to choose the documents he wants to release, since this is purely a business decision. For the orders he wants to release, again through the same user exit MV45AFZZ and FORM USEREXIT_SAVE_DOCUMENT_PREPARE, you can get this block removed through ABAP programming.
    You can define a new blocking reason, if required in OVLS.
    Regards,
    Raghu.

  • Condition value of Tax condition type gets added to Total Value in Contract

    Hi All,
    I'm currently investigating an issue where there are 2 line items in an SAP Sales Contract. There is a human error in the second line where the billing end date is less than billing start date in the billing plan.  Consequently, the second line has null Outgoing target value.
    However, the header Total value in the Contract  gets wrongly calculated as Basic condition value of 1st line  + Condition value of tax condition type of line one due to this.   When I modify the billing end date for the second line item to be a date greater than the billing start date, the above problem disappears and the total value of the contract does not include the tax component.
    For eg.
    Normal Error free  Contract
    Total Value at Header =   700.00 EUR
                       Material          Outgoing Target val
    Item 0010    MAT1               450.00                          ( 450 + 50 (tax )  )
    Item 0020    MAT2               150.00   
    Contract with billing plan error in second line
    Total value at Header =   550.00 EUR 
                            MAterial       Outgoing target val          
    Item 0010         MAT1             450.00                    ( 450 + 50 (tax ) )
    Item 0020         MAT2              0.00         
    Any inputs would be most welcome.
    Regards,
    Venkatesh.
    Edited by: Venkatesh Gopalarathnam on Jan 24, 2012 9:48 AM

    No, i didn't.
    Actually, i enter condition type and amount in sales order manually.
    At that time my program which i modified at 'Define And Assign Pricing Procedures' in IMG should be run. 
    But the result of running is different from my purpose.
    To change Condition value of condition type in sales order, are there any solution?

  • Line item pricing based on total value of the order

    Hi,
    We need to charge as a separate line item (material) 'Insurance' as a % based on the total value of the order less one line item. Our orders are created on the web and posted via a BAPI.
    (a) depending on where the customer is located, we charge a certain added shipping cost.
    (b)  the customer has the choice to ask for insurance or not.
    The actual order may be 10 lines totaling $1,000 and due to location, the BAPI slaps on an added line item of $100. If the customer chose the insurance option, the BAPI needs to slap on another line item whose value would be, say 2% of the total order, i.e. 2% of 1000 (instead of on 1000+100). Of course, if the customer doesn't choose this option he is not charges this extra line and further if the customer is not in the particular region, the 100 charge may also not be there.
    The 2% can vary time to time so needs to be driven by a condition record based on %.
    How can we achieve this in the pricing procedure? The logic of how the BAPI will function is clear to us, we are stuck on the pricing procedure configuration.
    Glad to answer any further questions you may need for clarifications.
    Many thanks!

    Ideally insurance would be levied on end customer based on Inco Terms like CIF, DDU etc.,
    So you can have an access sequence for which you can make use of tables like 033 & 034 in V/07.  In VK11, for this combination, maintain the required insurance percent.
    In condition type V/06, for this condition type, maintain "C" for Manual entries, since you have indicated that customer has the choice.  Otherwise, this can be populated automatically in sale order.
    Similarly, for shipment cost also, you can have the Inco2 as one of the combination so that based on region, this condition type will be populated in sale order.  If you have shipment cost configured, then this can be achieved.
    In your pricing procedure, you have to assign the shipment cost condition type next to insurance and assign the From-To step accordingly.
    thanks
    G. Lakshmipathi

Maybe you are looking for