Converting a value into decimals in smart form.

i have a variable(amt) in a smartform in which i have a value '600000.00' . When i display it, i do like this..
&amt(1.0)&  // cuz i want 60,000
but it displays '6' ..
why ? plz help... Thanks !!

&amt(n)& will tell the number of digits is n.
&amt(.n)& will tell us the number of digits after decimal point.
We can combine both these two like
&amt(n.n)& . So problem solved.

Similar Messages

  • How can i convert  my invoice which is in smart forms to xml file

    how can i convert  my invoice which is in smart forms to xml file.

    Hi Anil,
    Please go through this link:
    1. XSF stands for XML for Smart Forms. It is important to contrast XSF with .... The eDocx script engine can provide a script to convert the file format to an 
    http://www.ossincorp.com/Black_Box/Black_Box_4.htm
    please rewrds if found helpful.
    Regards,
    Alok

  • Convert given value into words

    i want convert given value into words
    such as
    amount 54300
    in words fifty four thousand three hundred only
    thanking you
    aamir

    number value in words

  • IPhone SDK: How to convert Pixel values into Point values

    UIScrollView has a property called contentSize. This takes values in points. How do i convert Pixel values into Point Vales?
    -TRS

    As far as I can tell, they're the same - I know they are in Photoshop at least. My 57x57 point Tab Bar icon is also 57x57 pixels.
    Hope that helps

  • Converting arrayCollection values into String

    Hi,
    In my application, the dataprovider of a datagrid which is an arraycollection receives values of objects. I need to get them as string variable so as to convert a particular column in the arraycollection as a string variable of comma seperated values.
    I am not too good with flex. Can someone please help me..?
    I have three AS classes :
    First Class
    package script.vo
    public class SectorsVO
    public function SectorsVO()
    public var sectorId:Number;
    public var sectorName:String;
    public var fromStation:StationsVO;
    public var toStation:StationsVO;
    Second class
    package script.vo
    public class StationsVO
    public function StationsVO()
    public var stationCode:String;
    public var stationName:String;
    public var countryCode:CountryVO;
    Third class
    package script.vo
    public class CountryVO
    public function CountryVO()
    public var countryCode:String;
    public var countryName:String;
    My mxml page is :
    <?xml version="1.0" encoding="utf-8"?>
    <!-- http://blog.flexexamples.com/2007/09/19/dragging-rows-between-two-different-flex-datagrid- controls/ -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="horizontal"
            verticalAlign="middle"
            backgroundColor="white">
    <mx:Script>
    <![CDATA[
    import script.vo.SectorsVO;
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var sectors:ArrayCollection = new ArrayCollection([{sectorId:101,fromStation:"Calicut",toStation:"Muscat"},
      {sectorId:102,fromStation:"Kochi",toStation:"Sharjah"},
      {sectorId:103,fromStation:"Bangalore",toStation:"Dubai"},
      {sectorId:104,fromStation:"Dubai",toStation:"Amman"},
      {sectorId:105,fromStation:"Amman",toStation:"Frankfurt"}]);
    [Bindable]
    public var draggedSectors:ArrayCollection = new ArrayCollection();
    public var mySectors:SectorsVO = new SectorsVO;
    public var myString:String = "";
    private function getValuesAsCSV():void{
    for(var i:int = 0; i < draggedSectors.length; ++i){
    mySectors = SectorsVO(draggedSectors.getItemAt(i));
    Alert.show("Value is : "+mySectors.sectorId);
    myString = String(mySectors.fromStation.stationName);
    Alert.show("Sector name :"+myString);
    ]]>
    </mx:Script>
        <mx:VBox width="50%">
            <mx:Label text="Stations" />
            <mx:DataGrid id="dataGrid1" width="100%" rowHeight="22" dataProvider="{sectors}" dragEnabled="true" dragMoveEnabled="true"
                    dropEnabled="true" verticalScrollPolicy="on">
                <mx:columns>
                    <mx:DataGridColumn dataField="fromStation" headerText="From Station" />
                    <mx:DataGridColumn dataField="toStation" headerText="To Station" />
                </mx:columns>
            </mx:DataGrid>
            <mx:Label text="{dataGrid1.dataProvider.length} items" />
        </mx:VBox>
        <mx:VBox width="50%">
            <mx:Label text="DataGrid #2" />
            <mx:DataGrid id="dataGrid2" width="100%" rowHeight="22" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true"
                    verticalScrollPolicy="on" dataProvider="{draggedSectors}" >
                <mx:columns>
                    <mx:DataGridColumn dataField="fromStation" headerText="From Station" />
                    <mx:DataGridColumn dataField="toStation" headerText="To Station" />
                </mx:columns>
            </mx:DataGrid>
            <mx:Label text="{dataGrid2.dataProvider.length} items" />
            <mx:Button id="getValues" click="getValuesAsCSV()" label="Get Sectors" enabled="{dataGrid2.dataProvider.length>0}"/>
        </mx:VBox>
    </mx:Application>
    My prime issue is to convert the values in the arraycollection into String variables.
    Please help me on the ablve matter..! Thanks in advance..!

    fromStation and toStation are already Strings, but you are attempting to cast an ArrayCollection entry to a SectorsVO object. The problem is that SectorsVO has a no-arg constructor and the entry that you are attemping to cast is not of type SectorsVO. You need to modify the constructor to accept an Object and manually assign values to the properties.
    It sounds like you are trying to build a CSV string out of all of the values of one of the fields. What you can do is loop through the draggedSectors and pull out the desired property, placing it into a temporary Array. After the loop, simply use Array.join(",") to produce a CSV string.

  • Convert column values into a row with a delimiter

    Hi Gurus,
    This may be a trivial question to you. I have an internal table itab with a column called plant, internal table has 'n' records, by the end of loop, I need to convert the column into a row delimited by comma into one row (one field). This needs to be dynamic without hard-coding.
    Plant
    1000
    2000
    3000
    4000
    5000 ....
    n....
    Expected result of the field:
    field1 value: 1000,2000,3000,4000,5000,...n
    Let's set a limit to the field say it can hold upto 500 chars.
    Thanks,
    GP.

    Hi,
    I've already tried this:
      ELSEIF <fs_dms_cv>-zca_cv_attr_ind = c_multiple.
      w_plant = <fs_plant_ele>-werks.
      concatenate w_string w_plant
                    into w_string separated by c_delimiter.
          IF w_end_fl = c_on.
          w_tabname = <fs_dms_cv>-dbtabname.
           ASSIGN (w_tabname) TO <fs_tabname>.
            IF sy-subrc = 0.
             ASSIGN COMPONENT <fs_dms_cv>-name_komp OF 
                STRUCTURE <fs_tabname> TO <fs_destination>.
                        IF sy-subrc = 0.
                          <fs_destination> = w_string.
                        ENDIF.
            ENDIF.
    There are 2 issues here: One is that after first plant there will be two commas inserted, after that it's consistent. Secondly the key word concatenate is against our code standards.
    Please let me know if there is any other way of doing this.
    Thanks.

  • Saving values into table from Interactive Form

    Hallo together,
    iam trying to do the example "Include Tables" (SAP Interactive Forms by Adobe - Galileo Press).
    It works, but not as described. When i want to change data in the interactive_forms ui element and press the webdynpro native button send, the value at the webdynpro table does not change. When i change the value at the webdynpro table and press the send button at the form or change the line at the webdynpro, the value in the adobe formular changes too. Thats one problem.
    The other problem is that i want to save the changed/added data from the formular at the database. What to do? The form layout is "ZCI Layout" and i added the script:
    DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070708051308.406522.403406 - ContainerFoundation_JS
    I also added this into "wddomodifyview":
    METHOD wddomodifyview .
      DATA: lr_interactive_form TYPE REF TO cl_wd_interactive_form,
                 lr_method_handler TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'FORM' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
    ENDMETHOD.
    I selected also:
    execute at: "Server and Client"
    I dont know what to do anymore.
    Best regards
    Philip

    Hi,
    To make an input enabled table. I would suggest to use TABLE element from the PDF library and then binding the columns from your context.
    Step 1: Library -> Standard ->Table
    Select create using assistance.
    Select body rows vary depending on data .
    Select number of Columns in your case it will be 4.
    Then proceed further and finish as per your need.
    Step 2:
    Select a table Column .
    Select Pallets->Object then chnage the cell type from Text to text field.
    Then click on binding tab and bind it to the respective field from hierarchy.
    Select upgrade the following properties radio button and check only "default value" option.
    This will create binding something like this $record.SCARR.DATA[*].CARRID
    Follow this for all other columns.
    Step 3:
    Now create a button in the View holding your form(you can also use SUBMIT button of form). On action event of this button right the following code to get all the changed values from Table.
    data lt_scarr type wd_this->elements_scarr.
      call method lo_nd_scarr->get_static_attributes_table
        importing
          table = lt_scarr.
    LT_SCARR will contain all the new values from Form. Then use this table to update ur database table.
    Thanks,
    Abhishek

  • How do you convert numeric values into english words?

    I am interested in creating a field in adobe acrobat that references a total dollar amount field. I want the java script to convert the numeric number into a written word, such as $59.59 as Fifty Nine and 59/100. I have no experience writing java script code and would really like some help on how this can get done. Its also important to embed in the programming that if their is no numeric value to reference, then nothing get referenced. This means an empty text box. Thanks for any help.

    Im using the below script...... I'm a complete novice at this and helping a friend out with it.
    Any info is appreciated.
    aTens = [ "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];
    aOnes = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine",
      "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen",
      "Nineteen" ];
    function ConvertToHundreds(num)
       var cNum, nNum;
       var cWords = "";
       num %= 1000;
       if (num > 99) {
          /* Hundreds. */
          cNum = String(num);
          nNum = Number(cNum.charAt(0));
          cWords += aOnes[nNum] + " Hundred";
          num %= 100;
          if (num > 0)
             cWords += " and "
       if (num > 19) {
          /* Tens. */
          cNum = String(num);
          nNum = Number(cNum.charAt(0));
          cWords += aTens[nNum - 2];
          num %= 10;
          if (num > 0)
             cWords += "-";
       if (num > 0) {
          /* Ones and teens. */
          nNum = Math.floor(num);
          cWords += aOnes[nNum];
       return cWords;
    function ConvertToWords(num)
       var aUnits = [ "Thousand", "Million", "Billion", "Trillion", "Quadrillion" ];
       var cWords = (num >= 1 && num < 2) ? "Dollar and " : "Dollars and ";
       var nLeft = Math.floor(num);
       for (var i = 0; nLeft > 0; i++) {
           if (nLeft % 1000 > 0) {
              if (i != 0)
                 cWords = ConvertToHundreds(nLeft) + " " + aUnits[i - 1] + " " + cWords;
              else
                 cWords = ConvertToHundreds(nLeft) + " " + cWords;
           nLeft = Math.floor(nLeft / 1000);
       num = Math.round(num * 100) % 100;
       if (num > 0)
          cWords += ConvertToHundreds(num) + " Cents";
       else
          cWords += "Zero Cents";
       return cWords;
    You can use the following script for the custom calculation for the words field when the number field is named "Number":
    event.value = "";
    var f = this.getField("Number");
    if(f.valueAsString != "") {
    event.value = ConvertToWords(f.value);

  • PHP/MySQL: Get value from one field, subtract 2, multiply by 20,   and insert value into another column on form submit

    Hello all,
    I'm pulling my hair out--thank you for any help you can give
    me.
    I have a form that a person fills out that has a field that
    asks "How
    many visitors including you" and I'd like them to type in a
    number, and
    on submit of the form, have that value -2 multiplied by 20
    and inserted
    into a "total cost" column.
    I'm using the standard DW server behaviors and I've searched
    the
    internet. How do I perform basic math on that value and
    insert it into
    the database?
    If you have any pointers, that would be great.
    Thank you!
    -John

    John R. Lenz wrote:
    > Your code below works great, and I just noticed links to
    your book were
    > available on your web site, and it's in the mail to me.
    Looking forward
    > to it.
    Thanks, hope you find it useful.
    > After the form is posted, I'd like to address the person
    who posted it
    > by their first name and last name, as well as some of
    the details. How
    > would you go about doing this in the best way? Would you
    set a variable
    > and echo it on the 'Thank you' page, or are there better
    ways of doing
    > it with a recordset and filtering it on form submit?
    To pass the details to a thank you page, you would need to
    store the
    information in $_SESSION variables. You could amend the
    earlier script
    like this:
    <?php
    session_start();
    if (isset($_POST['visitors'])) {
    if ($_POST['visitors'] < 3) {
    $num = 0;
    } else {
    $num = $_POST['visitors'] - 2;
    $_POST['total_cost'] = $num * 20;
    $_SESSION['total_cost'] = $_POST['total_cost'];
    $_SESSION['first_name'] = $_POST['first_name'];
    $_SESSION['last_name'] = $_POST['last_name'];
    ?>
    In the thank you page, put the following at the top of the
    page:
    <?php session_start(); ?>
    It must go before anything is output to the browser, so put
    it above the
    DOCTYPE declaration, and make sure there's no space before
    it.
    You can then use the $_SESSION variables in the thank you
    page.
    At the end of the page, add this to clear up the session
    variables:
    <?php
    $_SESSION = array();
    destroy_session();
    ?>
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to convert ascii value into character and vice versa

    Hello the java world people,
    I want to convert each characters from my array into their corespondent ascii value and vice versa, how can I do that ?

    The term "ASCII" is often used very loosely.
    Java char values are UNICODE and the ASCII codes are indentical to UNICODE characters in the range 0 .. 127. UNICODE values 128 and above don't have coresponding ASCII values, though 128-255 corespond to ISO-8859-1 which is one of the encodings often called "extended ASCII".
    As shown above you can covert between chars and coresponding int value simply with a cast, but you should be aware that the more exotic characters will not give you sensible values.

  • Popping up values into dropdown field while form initialize

    I have a two drop down boxes  one showing Gender male/ female , another showing  caste_group code like BC,SC,ST,OC etc.. I have xml record data
    with  name of the persons , employement no, gender, caste . so while form intialize time  i want to pop up names of persons in another drop down box based on the default  values in Gender and Caste_group drop down boxes. and  also employee code in to a textbox  named employee code. .As i newbie to javascript. iam struggling . plesse anybody help me.  i added values in to gender and caste_group values directly.
    here
    xfa.event.newText  is it applicable .

    Paul
    yes. Mr. paul.you are correct.  The xml file has the records of Gender & Caste_group & Employee no. & name at the same index. Through java script how to populate the names of employees at the runtime based on the  values selected from other dropdowns of Gender and Caste_group.waiting for your reply. thank you
    with regards
    Prasad

  • How do I properly pass values into an input parameter form and app module?

    Using JDeveloper 11.1.1.4
    I created an application module that calls a PL/SQL procedure that uses input parameters. I exposed this to the data control and dropped the object on a jsff as a input parameter form. I need to set some of the input parameters on this form from values gathered and stored in a pageFlowScope bean. What is the proper way so that the values will: 1. show on the form, and 2. get to the java code in the application module that calls my procedure? An example field from my form is:
            <af:inputText value="#{bindings.pPayerId.inputValue}" label="Payer ID"
                          required="#{bindings.pPayerId.hints.mandatory}"
                          columns="#{bindings.pPayerId.hints.displayWidth}"
                          maximumLength="#{bindings.pPayerId.hints.precision}"
                          shortDesc="#{bindings.pPayerId.hints.tooltip}" id="it8">
              <f:validator binding="#{bindings.pPayerId.validator}"/>
              <af:convertNumber groupingUsed="false" pattern="#{bindings.pPayerId.format}"/>
            </af:inputText>Thanks,
    Troy

    Thanks Shay for pointing me in that direction.
    I didn't find the NDValue in the bindings, so I went to the pagedef xml and found it there. Changing the NDValue successfully delivered the value to the app module when the method was executed, but didn't show the value on the form. I had to add the same #{pageFlowScope.paramsBean.fileFormatParam} to the value of the input field and it now is working as needed.

  • In BO 4.0,how to convert field values into column heading.

    Currently Product Codes are represented in "Code" and "Value" fields.
    Please retain the code and value fields, so that if the user adds another code and immediately needs to report on them they can through this functionality.
    Current:
    Fund Code
    Code
    Value
    ABC1
    Embassy Series
    XYZ123
    ABC1
    FMI
    19837
    ABC1
    Gladis Short Name
    FUJHAT
    Required:
    Fund Code
    Embassy Series
    FMI
    Gladis Short Name
    ABC1
    XYZ123
    19837
    FUJHAT

    Hi Archana,
    I think you need to use a Cross Tab on your report but also you will need to apply Sections on the Fund Code dimension.
    ie
    Section 1 - ABC1
    Crosstab
    Section 2 - ABC2
    Crosstab
    Section 3 - ABC3
    Crosstab
    With regards
    Gill

  • Convert a value into an enum

    I'm using enums that have assigned values, like so:enum Alphabet {
           a(101), b(135), c(22), d(5);
           private final int value;
           Alphabet(int i) { value = i; }
    }OK, so I can get a value from an Alphabet object by Alphabet item;
    item = Alphabet.c;
    int i = c.value;Cool. But how do I go the other way, where I have an int value and I need to get the corresponding Alphabet object? Is that what EnumMap is for? If so it seems kind of inefficient, since my values can be all over the map, so to speak.

    What's wrong with this?
    enum Alphabet {
    a(101), b(135), c(22), d(5);}
    I can't get that to compile. You have to provide a constructor in the enum to tell it what the values in the ()s means.
    Is there some reason the alphabet isn't a character
    array instead?My example of Alphabet was just generic. My real application is using enum to describe possible values within a protocol structure.

  • Convert Exponential value into float value

    Exponential format example 005.0000E-02 Result 0.05
    public static double convertExp(String slice)
    int i=0,j=0;
    int symbolpos=0;
    int sign=0;
    int power=0;
    StringBuffer PowValue=new StringBuffer();
    StringBuffer ExpValue=new StringBuffer();
    while(i<slice.length())
    if(slice.charAt(i)=='-') {sign=-1;}               
    if(slice.charAt(i)=='+' || slice.charAt(i)=='-') {
    symbolpos=i+1;
    PowValue.append(slice.charAt(symbolpos));
    PowValue.append(slice.charAt(symbolpos+1));                    
    if(slice.charAt(i)!=('e') || slice.charAt(i)!=('E'))
    if(j<=(slice.length()-5))
    ExpValue.append(slice.charAt(j));               
    j++;
    i++;          
    int powInt=Integer.parseInt(PowValue.toString());
    Double expFot=Double.parseDouble(ExpValue.toString());
    if(sign==0)
    return (expFot * Math.pow(10,powInt));
    else if(sign==-1)
    return (expFot/(Math.pow(10,powInt)));
    else
    return 1;
    Function return double value
    double tummy=convertExp(imageviewerdisplay.Slicethick);
    float convertslicevalue=(float)tummy; //double to float......

    Best 3rd post ever?:-) Except that this was the 1st post .. #2 & #3 are in the resurrected zombie.
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=583688{color}
    And, um, I've heard of a double chin, but what's this?double tummy=convertExp(imageviewerdisplay.Slicethick);db

Maybe you are looking for

  • Is there any tool to check whether the proper data is inserting or not?

    Hi, We have different products A,B and C. whenever user crates an account under these products some X,Y,Z table gets updated. If user1 creates an account under A then X, Y, Z tables update with some data along with some ID If user2 creates an account

  • Very slow to start mac os after instaling Windows thru bootcamp

    Hello. After installing Windows 7 using bootcamp, my mac became a lot slower to start mac os lion. I have filevault enabled, and it is taking a lot of seconds to display the filevault login screen. It is also taking a lot of time to detect my magic m

  • DTP with upload doesn't work

    Hello guys, I need your help. I'm having a strange symptom. I have created a simple DTP to transfer data fom one Cube to another. If I execute the DTP with delta upload it works fine and transfer all data, but if I change it to full upload it says th

  • Apps to watch shows won't work

    My phone was connecting to the wi-fi but not letting me using anything to required internet, saying there was a connection error to my server. Verizon reset my phone and internet was working along with most of my apps. But now when I try and use ABC

  • Subcontracting Process with Customer owned stock

    We are looking for SAP supported process where the customer sends us components along with a sales order for a finished good. The components have to be received into customer owned stock and will be used (for instance as part of the BOM) to produce t