Combine the concat value in a single textfield.

hi there,
How to make the concat function, combining the multiple textfield into a single textfield
It doesnt work when i'm inserting the data in the last of textfield.It should appear when i have finished inserting the data.. should i put the onChange function to make it appear..
and what is the diferent between concat and bufferString...
below is my example program which is not function...
<input type="text" name="neg" size="35" value=''>
<input type="text" name="dae" size="35" value=''>
<input type="text" name="jdhm" size="35" value=''>
<input type="text" name="mbp" size="35" value=''>
<input type="text" name="notkt" size="35" value=''>
<input type="text" name="noptk" size="35" value=''>
<input type="text" name="nobgn" size="35" value=''>
<input type="text" name="nodhm" size="35" value=''>
<% String hak1="",hak2="",hak3="",hak4="",hak5="",hak6="",hak7="",
tempNOPTK=request.getParameter("NOPTK"),
tempNOTKT=request.getParameter("NOTKT"),
tempNOBGN=request.getParameter("NOBGN"),
tempNODHM=request.getParameter("NODHM"),
tempJHM=request.getParameter("jdhm"),
tempMBP=request.getParameter("mbp"),
tempDAE=request.getParameter("dae"),
tempNEG=request.getParameter("neg");
if (tempNEG !=null && tempJHM !=null && tempMBP !=null && tempDAE !=null && tempNODHM !=null && tempNOBGN !=null && tempNOTKT !=null && tempNOPTK !=null)
hak1=tempNEG.concat(tempDAE);
hak2=hak1.concat(tempMBP);
hak3=hak2.concat(tempJHM);
hak4=hak3.concat(tempNODHM);
hak5=hak4.concat(tempNOBGN);
hak6=hak5.concat(tempNOTKT);
hak7=hak6.concat(tempNOPTK);
System.out.println(hak7);}
%>
<input type="text" name="id hakmilik" size="35" value='<%=hak7%>'>
i want the id hakmilik textfield to appear the result..

if (tempNEG !=null && tempJHM !=null && tempMBP !=null
&& tempDAE !=null && tempNODHM !=null && tempNOBGN
!=null && tempNOTKT !=null && tempNOPTK !=null)
{What happens if one of them is a null? That is why you are getting '""' displayed in the 'id hakmilik' field.
One more point, try to avoid spaces in field names.(id hakmilik).
Sudha

Similar Messages

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • To get the count of records and able to access the column value in a single

    Hi
    Is there any way to get the number of records in the query and access the column values
    e.g
    select count(*)
    from
    (SELECT department, COUNT(*) as "Number of employees"
    FROM employees
    WHERE salary > 25000
    GROUP BY department ) a
    This wil only get the Count, if i want to access each row from the inline view how can i do that.

    Your question is not clear.
    Are you looking for total record count as well as count by department ?
    Something like this?
    SQL>
    SQL> with temp as
      2  (
      3  select 1 dept ,10000 sal from dual union
      4  select 1 dept ,25100 sal from dual union
      5  select 1 dept ,30000 sal from dual union
      6  select 1 dept ,40000 sal from dual union
      7  select 2 dept ,10000 sal from dual union
      8  select 2 dept ,25100 sal from dual union
      9  select 2 dept ,30000 sal from dual union
    10  select 2 dept ,40000 sal from dual )
    11  select count(*) over( partition by 1 ) total_count,dept,
    12  count(*) over(partition by dept) dept_cnt  from temp
    13  where sal>25000;
    TOTAL_COUNT       DEPT   DEPT_CNT
              6          1          3
              6          1          3
              6          1          3
              6          2          3
              6          2          3
              6          2          3
    6 rows selected
    SQL>

  • How to set the intial Value for a single radiobutton in a Radio Group

    Hi All,
    I have a radiogroup with 3 buttons. The Names of the RadioGroup are driven from a XXVO.
    3 Radion Buttons:
    * X
    * XX
    * XXX
    When the Page loads i want to make one Radio button XXX to be the default , please suggest how do i do it.
    Note : The radiobutton values are coming from VO
    Thanks

    Hi ,
    As AJ said create 3 radio buttons in ur page and assign to one radio group,,
    OAMessageRadioButtonBean appleButton3 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne21");
    appleButton3.setName("serviceAgreementGroup");
    appleButton3.setValue("RW");
    OAMessageRadioButtonBean orangeButton3 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo21");
    orangeButton3.setName("serviceAgreementGroup");
    orangeButton3.setValue("NW");
    ---For radio button u can check in page it self.
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 23, 2010 2:47 PM

  • Get the column values in a single row seperated by commas

    Hi
    i have two tables project_baseline and project_resource which have the foreign key project_id from the base table project_details. Now iam trying to retrieve data from these tables using the below query :
    select distinct b.TASK_NAME,r.RESOURCE_NAME,() from project_baseline b inner join project_resource r on R.PROJECT_ID=B.PROJECT_ID group by b.TASK_NAME,r.RESOURCE_NAME
    Below is the output snippet :
    TASK_NAME RESOURCE_NAME
    TEST DESIGN PARAGI M
    TEST DESIGN RAJAN M S
    TEST EXECUTION VIBHU ARMA
    TEST EXECUTION PRATHAB GARG
    TEST EXECUTION NAGABHUSHAN G K
    TEST DATA PREPARATION RAJAN M S
    TEST DATA PREPARATION SHIVA MARAN
    TEST CASE REWORK VISWAN RAM
    TEST CASE REVIEW NAGABHUSHAN G K
    REGRESSION SANGEET
    PROJECT SUPPORT VIBHU ARMA
    PROJECT SUPPORT PRATHAB GARG
    PROJECT SUPPORT PARAGI M
    PROJECT SUPPORT NAGABHUSHAN G K
    PROJECT SUPPORT SANGEET
    PROJECT CLOSURE PRATHAB GARG
    i need to get the resource_names in a single row seperated by comma for a single task like following:
    TASK_NAME RESOURCE_NAME
    PROJECT SUPPORT VIBHU ARMA,PRATHAB GARG,PARAGI M,NAGABHUSHAN G K,SANGEET
    Could anyone please help me to get the query for the above formated output?
    Thanks in advance
    Meera
    Edited by: 928378 on May 22, 2012 5:20 AM

    Hi,
    It can be done using xmlagg function.
    For Example :
    Table Data..
    DEPTNO     ENAME
    20     WARD Tree
    23     Shank
    30     BLAKE
    10     MILLER
    30     MARTIN
    10     CLARK
    20     SCOTT
    30     TURNER
    20     ADAMS
    30     JAMES
    20     FORD
    30     BLAKE
    Query:
    SELECT deptno,
    RTRIM (XMLAGG (XMLELEMENT (e, ename || ',')).EXTRACT ('//text()'),
    ) NAME
    FROM emp
    GROUP BY deptno;
    Output :
    DEPTNO     NAME
    10     MILLER,CLARK
    20     WARD Tree,FORD,ADAMS,SCOTT
    23     Shank
    30     BLAKE,TURNER,BLAKE,JAMES,MARTIN
    Thanks,
    Shankar
    Thanks,
    Shankar.

  • How to store all the columns values into one single column

    Hi All,
    this is my file layout,i am receiving the data in below format only
    emp_no,c1,c2,c3,c4,c5
    100 ,1 ,0 ,1 ,0,1
    200 ,1 ,0 ,1 ,0,1
    300 ,1 ,0 ,1 ,0,1
    but i want to store that above data into my table like(from c1 to c5 columns values i want to store in period column)
    emp_no,period
    100 ,1
    100 ,0
    100 ,1
    100 ,0
    100 ,1
    200 ,1
    200 ,0
    200 ,1
    200 ,0
    200 ,1
    300 ,1
    300 ,0
    300 ,1
    300 ,0
    300 ,1
    please help me

    Strange but this is it
    Processing ...
    with original as (
         select 100 as id ,1 as v1,0 as v2,1 as v3,0 as v4,1 as v5
         from dual
         union all
         select 200 ,1 ,0 ,1 ,0,1
         from dual
         union all
         select 300 ,1 ,0 ,1 ,0,1
         from dual
    select id,v1 as res_row
    from original
    union all
    select id,v2
    from original
    union all
         select id,v3
         from original
    union all
         select id,v4
         from original
    union all
         select id,v5
         from original
                      ID                                   RES_ROW
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
    15 row(s) retrievedBye Alessandro

  • How to get the maximum/largest value in a single row?

    I have a simple Pivot table view with dollars as the measure, months on the columns and accounts on the rows.  I want to highlight the month that had the largest value.  E.g. so if the dollar values for account Revenue are 10 for Jan, 11 for Feb, 50 for Mar and 0 for the rest of the months, then I want to highlight the cell with 50 green. So essentially I need to be able to identify the max value in a row in the pivot table. 
    If I add a max calculation, it returns the top value across all columns and rows. A Rank calculation also returns rankings across all columns and rows. How can I determine the largest value in a single row?
    Thanks
    J

    In general you have to go by level based measures. Just tweak it as max(revenue by Year)
    Just do it in Criteria tab and see how it works and I thing rest you know how to do

  • How to refer a column value of a single row in conditional column display?

    Hello,
    does anybody have an idea, how i can refer a column value of a single row in conditional display of a column?
    So my idea is, that a report has a column, which value is only displayed, when another column value of this row has a specific value.
    I want to solve this problem with condition type: PL/SQL Function Body returning a boolean.
    But I do not know how to refer the column value of each single row!
    Thank you,
    Tim

    Here's a solution that, to me, seems easier to implement but, that's, of course, in the eye of the implementer.
    Rather than using APEX to generate a link column for you, actually create the link as part of your SQL.
    select '<a href="f?p=102:3:491847682940364::::P3_CONTACT_ID:' || CONTACT_ID || "><img src="/i/themes/theme_1/ed-item.gif" alt="Edit"></a>' CONTACT_LINK, ...
    etc.
    Test this out. You'll see that it works just like making a column a link using the column attributes.
    Next, we'll change the SQL to use a DECODE statement to either display the link or nothing depending on what your criteria is. For example, let's assume you only want a link for active contacts.
    select Decode( CONTACT_STATUS, 'A', '<a href="f?p=102:3:491847682940364::::P3_CONTACT_ID:' || CONTACT_ID || "><img src="/i/themes/theme_1/ed-item.gif" alt="Edit"></a>', NULL ) CONTACT_LINK, ...
    etc.
    This will not display the link in any rows in which the CONTACT_STATUS is not active, i.e. "A"
    -Joe

  • Any way to pass Multiple Values for a single Label in the Parameter?

    I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
    One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter. 
    PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
    Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
    QUESTION:
    Any way to pass Multiple Values for a single Label in the Parameter?
    I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
    it correct.
    I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
    Note: We are using Report Builder 3.0

    Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
    Try creating either a function or stored procedure using the code below (compliments to
    http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string: 
    CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
    RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
    BEGIN
    DECLARE @SeparatorPosition INT
    DECLARE @ArrayValue VARCHAR(1000)
    SET @Array = @Array + @Separator
    WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
    BEGIN
    SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
    SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
    INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
    SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
    END
    RETURN
    END
    Once created you can do things like this:
    SELECT * FROM Parse('John,Bill,David,Thomas', ',')
    SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
    WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
    This is what your SQL query would probably look like:
    SELECT OperationID, OperationName FROM dbo.Operations
    WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
    You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value.

  • How to Concat multiple columns to single column at the report level

    Hi All,
    I have a requirement in such a way that I have to concat multiple colulmns to single column at the report level.
    First of all the column I am using in my report is "X" with datatype as Integer. Now  if the length of this column "X" is <8 then I have add zero's (0) before the number.
    And then I have to concat with a column "Y" and then cocnat with a column "Z" and finally the datatype should be casted to CHAR.
    Can anyone please let me know the logic how I can add to my column so that it satisfies all the above.
    Thanks All

    >Also, Another thing is if X < length of 8 Ihave to append with zero's..
    >Ex: if the actual value of X is 123456 i wanted to show it as 000123456.
    Try to be consistence what you said, you are looking for 8 length and above ex is 9 in length.
    You need to learn many things one of those is CASE, at least do copy and also read
    Forums Etiquette/Reward Points

  • Is there a way to insert a string even if the value has a single quote in it?

    Hi,
    I have a varchar string like
    Name: D'souza
    I am getting an error when i am inserting  like this.
    insert into table (D'souza)
    Is there any way to allow inserting the exact value even if it has single quotes attached to it like set define off in oracle ?
    Regards
    Gautam S
    Gautam S

    insert into table values('D''souza')
    insert into table values('D'''+'souza')
    Try also this one
    SET QUOTED_IDENTIFIER { ON | OFF }
    http://msdn.microsoft.com/en-us/library/ms174393.aspx

  • How to Print the same field value in a single row

    Hi,
    I need to print the same field values in a single row
    For Examble
    in a table TestTable
    ID Name Value
    1 AB 120
    1 BC 150
    1 CD 130
    2 AB 111
    2 BC 112
    2 CD 113
    I need the query like if the Name contains BC and CD then i need to print like ID, BC Value, CD Value as below
    ID BC'Value CD'Value
    1 150 130
    2 112 113
    Kindly suggest me...
    Thanks in Advance
    Anu

    Hi,
    Since you're on 9i some available functionality unfortunatly isn't at your disposal.
    This should work, however, using your sample data:
    MHO%xe> create table t as ( -- generating sample data:
      2  select 1 cid, 'AB' cname, 120 cvalue from dual union all
      3  select 1, 'BC', 150 from dual union all
      4  select 1, 'CD', 130 from dual union all
      5  select 2, 'AB', 111 from dual union all
      6  select 2, 'BC', 112 from dual union all
      7  select 2, 'CD', 113 from dual
      8  );
    Tabel is aangemaakt.
    MHO%xe> select cid
      2  ,      max(decode(cname, 'BC', cvalue, null)) BC_value
      3  ,      max(decode(cname, 'CD', cvalue, null)) CD_value
      4  from   t
      5  group by cid;
           CID   BC_VALUE   CD_VALUE
             1        150        130
             2        112        113For reference and future challenges, see:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:419593546543
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php

  • How to find the maximum value among four fields in a single record

    Hi Gems...
    I have a record in which there are 4 currency fields.
    Now i would like to know the maximum of these 4 fields.
    I tried with Max functions in which i put all the 4 values...but it is showing error like ") is missing" though it is there.
    Can we insert more than 2 values in Max function?
    Or else is there any other option to find the max value among the 4 values which lies in a single record
    Thanks
    Jiten

    Hi Anil,
    Say suppose i have a single record in which 4 premiums of a particular bond exists.
    for eg:
    Prem1      Prem2        Prem3          Prem4
    129000.00      388000.00   228000.00   14800.00
    Now this is a single record for a particular bond ... now i need to calculate the max value among these 4 premiums.
    How would we proceed to achieve this?
    Regards
    Jiten
    Edited by: Jitendra Yuddandi on Feb 3, 2009 1:04 PM

  • Need an API to Validate the Segment Values of an GL Code Combination

    Hi,
    I have a requuirement wherein i need to validate the semgent values of an GL Code Combination. I want to know is there any API to Validate the Segment Values. The API should be able to validate the segment values for existence in value set, enabled/disabled, Posting flag enabled or disabled (i.e Compiled Attributes Validation).Please provide me some pointers.
    Thanks & Regards,
    Siva

    look at FND_FLEX_EXT or FND_FLEX_KEYVAL
    FND_FLEX_KEYVAL.validate_segs

  • I combine 3 different invoices to create a single file,when it is done combining the files,all three invoices are the same,but i picked 3 different invoices,why does it do that?

    i combined 3 different invoices to create a single file,when the program is done combining the files it makes all the invoices the same,it does not have the other 2 invoices in it,makes 3 copies of the first invoice,why does it do that?

    I was having the same problem.  The trick is to flatten the forms before combining.  It is in the tools - print production menu.  If print production isn't there click on where I am indicating with the top blue arrow.

Maybe you are looking for

  • Office Network Issue with MacIntel

    OK, this makes sense to me but might be tricky for someone else. I have an office of 7 Macs, all on an ethernet network. We want full access to eachother's Home folders so here's how we connect to eachother: if I want access to John's computer I conn

  • How to print from this utility?

    When opening a pdf from the web my colorsync utility does not have a print option.  I can't figure out how to print these documents?  Please hel

  • My iPhone 5 restarts after 2-5 minutes all the time!

    My iPhone 5 restarts all the time. Worked fine for about a week, but after pressing use for development in Xcode, it started happening. Restore to new iPhone did not help. Anyone with the same problem? - Christian

  • Oracle 10g Workshop I or Oracle 11g workshop I

    Hi guys, I need a bit of advice on which course should I follow. I know that Oracle 11g is the latest release and it composes of new features compared to 10g, but I need to know the which is worth doing is 10g or 11g. -Coz I heard that oracle 11g sti

  • Can't copy artwork when right-clicking in 10.5.1

    I just upgraded to iTunes 10.5.1 and now I can't right-click on artwork and Copy it. It will only let me Paste. Is this a bug? Did Apple deliberately remove that ability? This is true for TV Shows, Movies, Books also.