Add text item data and display the output in another text item

Hi! All,
I have four text item. like HA,DA,basic_salary and total_sal.I want to add the data entered in the text item in HA,DA,basic_salary and display in total_sal text item.How can I do this.Please help in this matter.
Thanks,
Abha

1.Select the text item TOTAL_SAL
2.Open property palette
3.Under Calculation node
     Set calculation mode as Formula
     Set Formula as nvl(:ha,0)+nvl(:da,0)+nvl(:basic_salary,0)                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to Read the one Source Column data and Display the Results

    Hi All,
         I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
    Ex:
    Pr_ProjectType
    AD,AM
    AD
    AM
    AD,AM,TS,CS.OT,TS
    AD,AM          
    like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
    4.AD,AM,TS,CS.OT,TS in this string we need AD,AM  only.
    this logic we need we have thousand of data in the table.Please help this is urgent issue
    vasu

    Hi Vasu,
    Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
    are two approaches for your reference:
    Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
    for the custom function is as follows:
    CREATE FUNCTION dbo.udf_GetNumeric
    (@strAlphaNumeric VARCHAR(256))
    RETURNS VARCHAR(256)
    AS
    BEGIN
    DECLARE @intAlpha INT
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
    BEGIN
    WHILE @intAlpha > 0
    BEGIN
    SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
    END
    END
    RETURN ISNULL(@strAlphaNumeric,0)
    END
    GO
    The SQL commands used in the OLE DB Source is like:
    SELECT
    ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
    FROM MyTable
    Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
    characters to the corresponding substring. The script is as follows:
    using System.Text.RegularExpressions;
    Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
    References:
    http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/ 
    http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All,
    I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
    I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
    The example of CSV file is 
    Firstname,LastName
    Happy,Coding
    Learn,C#
    I want to display the output as
    HappyCodingXYZCollage
    LearnC#XYXCollage
    The below is the code I have tried so far.
     // .Reading a CSV
                var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
                List<string> listA = new List<string>();
                            while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    string[] values = line.Split(',');
                    listA.Add(values[0]);
                    listA.Add(values[1]);
                    listA.Add(values[2]);          
                    // listB.Add(values[1]);
                foreach (string str in listA)
                    //StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
                    Console.WriteLine("the value is {0}", str);
                    Console.ReadLine();
    Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
    Best Regards,
    Raja Village Sync
    Beginer Coder

    Very simple example:
    var column1 = new List<string>();
    var column2 = new List<string>();
    using (var rd = new StreamReader("filename.csv"))
    while (!rd.EndOfStream)
    var splits = rd.ReadLine().Split(';');
    column1.Add(splits[0]);
    column2.Add(splits[1]);
    // print column1
    Console.WriteLine("Column 1:");
    foreach (var element in column1)
    Console.WriteLine(element);
    // print column2
    Console.WriteLine("Column 2:");
    foreach (var element in column2)
    Console.WriteLine(element);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Adding numbers in a file a and saving the output in another file.!

    can any one pls tell me how to add numbers from a textfile and save the output in another textfile. i'm new with java so pls help out..

    Hi Friend,
    your statement is not clear, it's bit confuse
    this is my unserstanding,
    you want to open a file and read the values then add numbers,
    latter save the sum in a new file.let me know if this is the thing, I can help u
    with Cheers
    Prasanna

  • Running Interactive commands in java and displaying the output.

    Hi All,
    I'm running a sample code to execute a user defined command (cmd1) and display the results. The output of the command when executed in command prompt is
    (1) Executing the command cmd1
    (2) Do you want to continue(Y/N)_ <waits for user input>
    (3) Based on user input
    (Y) Displays the results
    (N) Interrupted
    But i'm facing problem when i execute the below code. When the results are being displayed instead of displaying line(1) and (2) and then waiting for the input- the code waits for the input and then only displays the results.
    O/p
    inside output
    inside input
    y (------ gets the input and then only displays the results).
    Executing the command cmd1
    Do you want to continue(Y/N)
    results
    Please help out how to resolve this issue.
    Thanks.
    Sample Code for reference.
    import java.util.*;
    import java.io.*;
    public class SampleCheck {
         public static void main(String[] args) throws Exception {
              (new SampleCheck()).test();
         void test() throws Exception {
              Process proc = Runtime.getRuntime().exec("cmd1");
              // any error from the process?
              StreamHandlerErr errorStream = new StreamHandlerErr(proc
                        .getErrorStream(), System.err);
              // any output from the process?
              StreamHandlerOutput outputStream = new StreamHandlerOutput(proc
                        .getInputStream(), null);
              // any input to the process?
              // FileInputStream fin = new FileInputStream(new File("textfile1.txt"));
              StreamHandlerInput inputStream = new StreamHandlerInput(System.in, proc
                        .getOutputStream());
              // start the stream threads
              // errorStream.start();
              outputStream.start();
              inputStream.start();
              // wait till it returns
              int exitVal = proc.waitFor();
              System.exit(exitVal);
         class StreamHandlerInput extends Thread {
              InputStream is;
              OutputStream os;
              StreamHandlerInput(InputStream is, OutputStream os) {
                   this.is = is;
                   this.os = os;
              public void run() {
                   System.out.println("inside input");
                   try {
                        int c;
                        while ((c = is.read()) != -1) {
                             os.write(c);
                             System.out.println("c= " + c);
                             os.flush();
                   } catch (IOException e) {
                   System.out.println("End of Run Method..Input");
         class StreamHandlerOutput extends Thread {
              InputStream is;
              OutputStream os;
              File f=new File("jbsrt_output.txt");
              StreamHandlerOutput(InputStream is, OutputStream os) {
                   this.is = is;
                   this.os = os;
              public void run() {
                   System.out.println("inside output");
                   try {
                        int c;
                        FileOutputStream fs=new FileOutputStream(f);
                        /*PrintStream ps =new PrintStream(;
                        ps.print(arg0)
                        ps.close();*/
                        InputStreamReader ir = new InputStreamReader(is);
                        //System.out.println(ir.read());
                        BufferedReader br = new BufferedReader(ir);
                        String line = null;
                        while((line=br.readLine())!=null)
                             System.out.println(line);
                   } catch (Exception e) {
                   System.out.println("End of Run Method..Output");
         class StreamHandlerErr extends Thread {
              InputStream is;
              OutputStream os;
              StreamHandlerErr(InputStream is, OutputStream os) {
                   this.is = is;
                   this.os = os;
              public void run() {
                   System.out.println("inside Err");
                   try {
                        int c;
                        while ((c = is.read()) != -1) {
                             os.write(c);
                             os.flush();
                   } catch (IOException e) {
                   System.out.println("End of Run Method..Err");
    }

    Console input is line buffered. This means you only get the first character a line after the newline has been inputed.
    The same thing happen if you just type on the console.
    I am not aware of any simple way around this.
    IDEs get around this by changing the application run so that the input/output is captured as it happens and sent over a socket connection.

  • How do I get the results of 2 text fields and put the output into another ?

    I have 2 text fields that multiply off of each other.
    My question is, is there a way to get the result of this and put it into another text field? And from that result get another result? Or do I have to get the results from a textarea?

    I have 2 text fields that multiply off of each other.I assume this really means you want to have something else multiply the contents of the two text fields. When you are using an object-oriented language, it is helpful if you consider what objects are responsible for what actions. Loose descriptions lead to confusion.
    My question is, is there a way to get the result of
    this and put it into another text field? And from
    that result get another result? Or do I have to get
    the results from a textarea?Assuming that your "text field" is a Swing text component (and not, say, an HTML text field) then it has a getText() method that returns the contents as a String. If you plan to multiply this by something then you'll want to convert it to an int or a double or maybe a BigInteger or a BigDecimal object. Are we on the right track here?

  • Getting file data and displaying it in a dynamic text box

    The purpose of this function is to load and display a
    specific menu for a restaurant (lunch, dinner, dessert, etc.)
    This script is located inside of a movie clip that has the
    text box and buttons.
    There are 4 buttons that have event listeners that go to a
    function that determines which button was pushed, and then sends a
    call to loadMenu with a string that has the filename.txt.
    In frame 1 of the movie clip, the variables used in the code
    are declared as such:
    var newMenuRequest:URLRequest = new URLRequest();
    var newMenuLoad:URLLoader = new URLLoader();
    var loadThisMenu:String = ""; //This is the variable the
    buttonclick function alters and sets as the string to send to the
    loadMenu.
    My error is 1195: attempted access of inaccessible method url
    with static type flash.net:URLRequest
    Any ideas?

    quote:
    Originally posted by:
    GWD
    newMenuRequest is an instance of a URLRequest.... and it
    doesn't have a url method.
    It has a url property.
    I would be inclined to create a new URLRequest each time. But
    perhaps that's not necessary.
    Try changing
    newMenuRequest.url(menuName);
    to:
    newMenuRequest.url=menuName;
    see if that works.
    Yeah I realize it's a little inefficient.
    THANK YOU SO MUCH FOR THE SUGGESTION. works perfectly.

  • Need to run a sql query in the background and display the output in HTML

    Hi Guys,
    I have a link in my iprocurement webpage, when i click this link, a query (sql query) should be run and the output should be displayed in a HTML page. Any ideas of how this can be done. Help appreciated.
    We dont have OA Framework and we r using 11.5.7.
    help needed
    thanx

    Read Metalink Note 275880.1 which has the link to developer guide and personalization guide.

  • Read statement to read data and display in output table

    hi
    consider a scenerio as below
    int table in which data i already tehre gt_sagmeld (here primary key is guid_lclic)
    and matching field for next select is guid_mobj
    not corpar table is joined to butoo by  parno.
    and primary key of corpar is guid_corpar which has no link to gt_sagmeld
    and primary key of but00 is partner and it isjoined to corpar by but00-partner = corpar-parno
    adn i need to read but00-bpext
    pls see the below seelct statment for it
    gt_Saglemd has data...
    data: gt_sagmeld_temp like gt_sagmeld.
    gt_sagmeld_temp[] = gt_sagmeld[].
    delete adjacent duplicates from gt_sagmeld_temp[] comparing guid_mobj
    select       corpar~PAFCT 
                  corpar~parno     
                into table gt_corpar
        from    corpar
        for all entries in gt_sagmeld_temp
        where  /sapsll/corpar~guid_mobj = gt_sagmeld_temp-guid_mobj
        and    /sapsll/corpar~PAFCT = 'SH'.
    sort gt_corpar by parno.
    delete adjacent duplicates from gt_corpar comparing parno.
    select but000~partner
           but000~bpext
       from but000 into table gt_but001
    for all entries in gt_corpar
    where  but000~partner = gt_corpar-parno.
    now the table gt_but001 contans the required bpext
    and i want to read it to outtab
    reading...
    loop at gt_satmeld into wa_gt_sagmeld
    some field selection....
    now how to read the bpext in this loop from but001
    as there is table corpar also and then but001
    read table gt_but000 into wa_but000
      with key  partner = corpar-parno
    ...but this will not work as firs i need to read corpar also so how to use the loop or what is procedure to read ...
    pls suggest

    Hi,
    It is very much possible.
    1. You can create a new table in SE11/SE12 and u can create this table as a maintainable table( able to maintain entries). An ABAPer can help you to enable this table as maintainable one.
    2. If you know the name of the maintainable table, you can maintain entries directly in SM30. If you need a tcode for this, you can also do this by creating a tcode in SE91 for the table.
    3. If you know the tcode, you can directly view and download the entries using the tcode itself.

  • How to do search with multiple texts across documents and rename the file with found text?

    Hello:
    I'm trying to do the batch search across the multiple documents and rename the file (or save as) after the found word?
    In example:
    I have many unique texts and would want to search across the multiple documents.
    If a document is found with that unique text then, the document is either renamed or save as with that unique text. 
    So, I could know what unique text that file holds.
    How do I do that?
    Let me know.
    Thanks

    Welcome to the forum!
    When you want to post a block of code, you can enclose it with the mark ups { code }
    That is the key word code surrounded by curly brackets, but without the spaces
    You seem to be running a very old (and unsupported release of the database)
    7.3 has not been a current release for about 10 years.
    It's probably been that long since I've used this technique, but i think it should work.
    You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
    If you used split to chop up your export file, use cat or dd to reassemble it.
    So, something like this:
    mknod bk.dmp p
    cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
    imp SYSTEM/$PASSWD parfile=imp_bk.parfile
    rm bk.dmp
    $ cat imp_bk.parfile
    file=bk.dmp
    log=imp.log
    full=y
    buffer=1048576
    ignore=y
    commit=y let us know if still have problems.
    Good Luck!

  • Validate the Date and display the message

    Hi,
    Deposit Date:[yyyy/MM/dd]
    <td>
    <t:inputCalendar id="dtTo" required="false" value="#{processApplication.depositDate}"
                renderAsPopup="true" popupTodayString="today" popupWeekString="week"
             renderPopupButtonAsImage="true" popupDateFormat="yyyy/MM/dd" size="12"
             maxlength="10"  forceId="true"  popupButtonStyleClass="calendar"
             title="YYYY/MM/DD"    popupButtonImageUrl="../../images/calendar.gif">
    <f:convertDateTime type="date" pattern="yyyy/MM/dd" /></t:inputCalendar>
                                              </td>
                  <td ><h:message for="dtTo" /></font></td> Incase, when the user selects a date that is way back into the future or some date that is in 1900 ...I want to display a confirm dialog box saying " Are you sure of the date selected ? " .
    If yes..go ahead..if no give him another chance to select the date..
    I tried with having onclick in *<t:inputCalendar>* but it is not getting fired.
    Even if it gets fired, how can I check the condition that the Date entered is not the CurrentDate?
    Is there anyother better way to achieve this?
    Any help is appreciated.
    Thanks.

    <t:inputCalendar id="dtTo" required="false"
          value="#{processApplication.depositDate}" onchange="validatePastDate();"
          renderAsPopup="true" popupTodayString="today" popupWeekString="week"
          renderPopupButtonAsImage="true" popupDateFormat="yyyy/MM/dd" size="12"
          maxlength="10"     forceId="true"      popupButtonStyleClass="calendar"
          title="YYYY/MM/DD"     popupButtonImageUrl="../../images/calendar.gif">
    <f:convertDateTime type="date" pattern="yyyy/MM/dd" /></t:inputCalendar>
    function validatePastDate() {
       var ob = document.getElementById('form1:dtTo'); //not sure what you there
    When I looked in the view source of the page...it is using id="dtTo" as its id.
    Thanks.

  • How to store ,retrieve and display the data in the structured format?

    Hi All,
    We have a requirement in which we need to store a information of type some thing like as below:
    "The PCM_OP_SEARCH opcode fails for the below search used in invoicing module:
    0 PIN_FLD_POID           POID [0] 0.0.0.1 /search -1 0
    0 PIN_FLD_FLAGS           INT [0] 728
    0 PIN_FLD_TEMPLATE        STR [0] " select sum( 1.F8 ), 1.F9 from /event 1, /item 2 where (2.F1 = V1 and  2.F5 >= V5 and 2.F6 < V6 and 2.F2 = V2) and 2.F3 = 1.F4 and  1.F7 like V7 group by 1.F9 "
    0 PIN_FLD_ARGS          ARRAY [1] allocated 20, used 1
    1     PIN_FLD_AR_BILLINFO_OBJ   POID [0] 0.0.0.1 /billinfo 10773245 3
    0 PIN_FLD_ARGS          ARRAY [2] allocated 20, used 1
    1     PIN_FLD_BILL_OBJ       POID [0] 0.0.0.0  0 0
    0 PIN_FLD_ARGS          ARRAY [3] allocated 20, used 1"
    I understand that we can store this as a Blob or Bfile format.But I need to retrieve the data and display it on the GUI in the same format.
    Can anyone please suggest me how can I achieve the same in APEX?
    Thank you for your time !!
    Regards,
    Shan

    And what would be wrong with putting this into a plain old table with columns, on which you could then create a form+report?

  • Reading the XML file and displaying the string with the desired output

    Hi Gurus,
    I have an xml file as below.
    catalog>
    <book>
    <id>101</id>
    <genre>Computer</genre>
    <author>Jim Cortez</author>
    <title>XML for dummies</title>
    <price>44.95</price>
    <description>An in-depth look at creating mashed potatoes
    with XML.</description>
    </book>
    <book>
    <id>102</id>
    <author>George Bush</author>
    <title>I'm the decider</title>
    <genre>Fantasy</genre>
    <price>0.95</price>
    <description>I like milk and cookies.</description>
    </book>
    </catalog>
    I would like to display the Output as
    [<catalog>:1]
    [<book>:1]
    [<id>:1]
    [101:3]
    [</id>:2]
    [<genre>:1]
    [Computer:3]
    [</genre>:2]
    [<author>:1]
    [Jim Cortez:3]
    [</author>:2]
    [<title>:1]
    [XML for dummies:3]
    ............ etc., etc.,,
    here is the code template.......
    import java.io.*;
    class TagScanner implements TokenStream {
    public static final int BEGIN_TAG_TYPE = 1;
    public static final int END_TAG_TYPE = 2;
    public static final int TEXT_TYPE = 3;
    protected Reader reader = null;
    /** Lookahead char */
    protected char c;
    /** Text of currently matched token */
    protected StringBuffer text = new StringBuffer(100);
    public TagScanner(Reader reader) throws IOException {
    this.reader = reader;
    nextChar();
    protected void nextChar() throws IOException {
    c = (char)reader.read();
    public Token nextToken() throws IOException {
    if ( start of a tag ) {
    // scarf until end of tag
    // type is either BEGIN_TAG_TYPE or END_TAG_TYPE
    if ( end of file ) {
    type = Token.EOF_TYPE;
    text = "end-of-file";
    else {
    // scarf until start of a tag
    type = TEXT_TYPE;
    if ( just whitespace ) {
    // ignore and get another token
    return new Token(type, text.toString());
    Can someone please provide me the logic for the code please........... here is the complete link of the excersie
    http://www.antlr.org/wiki/display/CS652/Lexer+for+XML
    Many Thanks
    -M

    Can someone please provide me the logic for the code please..........The logic is pretty well spelled out for you in the description of the assignment and the outline for the code you provided. If you mean
    Can someone please do my homework for me....The answer to that is usually yes, someone can do your homework for you, but no, they usually won't actually do it for you.
    However, if you are really stuck on what to do, you should consider:
            if ( start of a tag ) {How would you know that you are at the start of a tag? Once you can answer that, the rest sort of works itself out as long as
                // scarf until end of tagyou realize what it means to 'scarf' and how to determine when an end-of-tag is reached (hint, very similar as to how to determine if you are at the start-of-tag).

  • I want to add hyperlink in the illustrator file and want the output in the PDF

    I want to add hyperlinks in the illustrator file and want the output in the PDF.
    I tried to add the multiple hyperlinks on the text and images in the illustrator by using the attribute panel but the links are not working in the published PDF.
    Is there is any other method to create a hyperlink in the illustrator?
    Can anybody help me out in this
    Thanks

    Interesting, Carlos.
    There's another method by JET: Re: hyperlinks in Ai

  • Display the output in horizontally insted of vertical as per date

    hi
    experts
    display the output in horizontally insted of vertical as per date.
    Date :    From ..........  To  .............
    work center         yeild to confrorm                                    date
    W1                         288                                               1.4.2009
                                  256                                                3.4.2009
    Eg
    workcenter    date :   01.04.2009      2.04.2009    3.04.2009    4.04.2009  .......................
      W1                           288                                 256  
        w2                           234                345                               345

    Hi,
    Incase you have to display this in an ALV; then your internal table will be dynamic.
    Your internal table will consists of following fields
    Work Centre
    Date1
    Date2
    DateN
    The date columns will not be of type d but rather character as in this columns you have to store the workcentres in them.
    Create your dynamic internal table using the class CL_ALV_TABLE_CREATE and method CREATE_DYNAMIC_TABLE.
    You will have to create a fieldcatalog table and pass to the method.
    Then use the dynamic internal table created to store your data horizintally against each date column.
    Display the output in an ALV.
    Pass the date values as the description for each date column in the ALV.
    I hope you get the concept.
    Regards,
    Ankur Parab
    Edited by: Ankur Parab on Jun 23, 2009 4:24 PM

Maybe you are looking for

  • Error while opening the workflow page

    All:   I am trying to install and configure a NW IdM. I am done with the installation. When I try open   http://<host>/workflow/index.php, i get the following error: Login failed for user ''. The user is not associated with a trusted SQL Server conne

  • How to get the dID of any Content from SS_DATAFILE in Site Studio 10gR4?

    Hi, I am trying to get the dID of a Contributor Data File from its dDocName (SS_DATAFILE). I can do a search based on this Content ID but if I am able to get the dID using one of the Site Studio variables, it will be great. Thanks, Justin

  • What does Release DHCP do?

    Some background info first. I live in the UK but have a vacation rental home in the US where I have Brighthouse Cable TV/Internet/Phone via an Arris TM502G cable modem. I have added a WRT54G v6 router and a Slingbox tuner so I can watch US TV at home

  • How to recover backup

    i have backed-up my iphone on mu computer then i have to reformat my PC and install itune again. How can i recover my iphone back-up for restore purpose?

  • Transfering Album Artwork and Play Counts

    I'm about to buy a new computer but want to make sure that when I install iTunes that I can take the play counts and album art work from my old computer and transfer them to the new one. My music is on an external hard drive and isn't an issue.