Get the name of the column of row

All,

In my Jdev 11.1.2 app I want to know the name of the attribute column that is modified. I am able to get the attribute name that currently use the getAttrbute() on the line (if you open the VO we see name |) Type of | Column, etc.). How can I get the name of the column?

For example: the name of the attribute is Nom_tiers, column name can be Party_Name. I am able to do Nom_tiers but not Party_Name.

thnks

Published by: in the line of fire on 14 December 2011 14:13

getEntityAttrForAttribute("attribute_name_here").getColumnName)

Tags: Java

Similar Questions

  • I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows?

    I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows so that I can do the calculations?

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll

  • How to get the column number

    Hi all,

    I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!

    Thus given mySelection = app.selection [0], how is possible to get the column's selection?

    I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)

    with x being app.selection [0] .index.

    but then I'm stuck as if I add ".textColumns", I get an error

    I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.

    As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base

    Any help would be appreciated

    Thank you

    Ed

    Okay here goes,

    For and only for the linked text frames.

    // For and only for linked text frames.
    // Warning
    // The Good: This will PROBABLY work for you
    // The Bad :THIS IS A REALLY PRIMITIVE METHOD
    // The Ugly: It could fail in COUNTLESS cases
    // Here goes......
    
    var mySelection, textFrame, parentPage, c;
    mySelection = app.selection[0];
    textFrame = mySelection.parentTextFrames[0];
    parentPage = textFrame.parentPage;
    c = 0;
    while(textFrame && textFrame.parentPage === parentPage){
        textFrame = textFrame.previousTextFrame;
        c++;
    }
    
    alert('Column number: ' + c);
    

    Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.

    The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.

    If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.

    HTH

    Trevor

  • How can I get the number of rows in the table using Sunopsis API target in ODI 10 g?

    Hi guys,.

    In fact, I want to send an alert message as soon as the interface is run from a package. I've included alert OdiSendMail that sends an email once the interface is running.

    Could someone please tell how to get the number of rows inserted into the table the Sunopsis API target.

    I tried to use < % = odiRef.getNbRows () % >, but this has not worked for me. Since I am a beginner, could you please help out me

    This is my mail to send ODI format

    "The population of data managed to < % = odiRef.getSysDate () % >

    Total of lines in the target table is: < - need an API code-> "


    Kind regards

    Clinton

    Published by: LawrenceClinton on February 25, 2013 20:53

    Hello

    Create the project with details below variable

    Nom_de_variable: Total_Row_Count

    Type of variable: Variable discount

    Definition tab:
    Data type: digital
    Action: No persistent

    Refresh the tab:
    Schema: provide the schema of your repository to work and be

    SELECT log.nb_row
    THE journal of snp_step_log, snp_scen_step step
    WHERE log.nno = step.nno
    AND step.scen_no = (SELECT scen_no FROM snp_scen_step WHERE step_name='<%=odiRef.getPrevStepLog ('STEP_NAME") % > ')
    AND log.sess_no = '< % = odiRef.getSession ("SESS_NO") % >' code at low
    AND step.step_name = ' < % = odiRef.getPrevStepLog ("STEP_NAME") % > '

    Note: add this variable after the stage of interface in your package (after the interface anywhere you can place), you can add this variable before ODISendEmailNotification in your package

    call this varciable * #Total_Row_Count * in the Notification of ODISendEmail

    for example :

    Data has been fulfilled successfully in < % = odiRef.getSysDate () % >
    Total no of lines filled are: * #Total_Row_Count *

    it will work

    cordially,
    Phanikanth

    edited by: Phanikanth on February 28, 2013 01:13

    edited by: Phanikanth on February 28, 2013 01:14

  • Get the column names with cursor or an alternative

    Hi guys,.

    What I currently have is an email with an attachment from PL/SQL. I need to display the query results in .txt attachment. What I've done now is to use a slider but it shows only the results I want column names & ideally the message "14 rows returned. How could I put this in a VARCHAR2?

    Mike

    Add a value to each sub selection order by...

    for example

    SQL> set heading off
    SQL> ed
    Wrote file afiedt.buf
    
      1  select colA, colB, colC
      2  from (
      3        select 1 as ord, cast('TABLE_NAME' as char(30)) colA,cast('GRANTEE' as char(30)) colB,cast('PRIVILEGE' as char(30)) colC from dual
      4        union all
      5        SELECT 2, rpad('-',30, '--') colA, rpad('-',30, '--') colB, rpad('-',30, '--') colC from dual
      6        union all
      7        select 3, cast(table_name as char(30)) colA,cast(grantee as char(30)) colB,cast(privilege as char(30)) colC from user_tab_privs where table_name like 'EMP'
      8       )
      9* order by ord, colA
    SQL> /
    
    TABLE_NAME                     GRANTEE                        PRIVILEGE
    ------------------------------ ------------------------------ ------------------------------
    EMP                            SCOTT                          SELECT
    
    SQL>
    
  • How to get the value of row current table when press the button submit

    Hello

    I want to get the current value of the SuccessionPlanId line which is part of the column in a table that is advanced.

    I created a (created using customization, from action through CO) button in the table as column, so each line with a single key, if I press the button of the first line means so I want to extract the first line SuccessionPlanId and if it's the 3rd way so I want to get the value of the value of the third row.

    How in the post of controller?

    Please answer soon, its urgency.

    Thanks in advance,
    SAN

    OK, need to go with a delicate way,

    1.) create a new table with Jdeveloper and there shud be a replica of the room once except the button submit newly added, pls note button type shud be present the type of button.

    2.) hide the existing table area and create a new stacklayoutbean.

    (3.) this stacklayout bean will have the property to extend, you give the full path of the new custom of advanced table box.

    Now you should be able to get the reference of the line during the click on the "submit" button

  • How to get the column headers into an Excel report with variable width columns?

    Hello:

    I read this question before but I can´t open the link when I try to download the solution I get the following: status HTTP 404 the requested resource is not available.

    Can someone help me with the solution? I want to just put a heading for each column (1 thermocouple, thermocouple 2, anemometer, etc.).

    In advance, thank you for your help!

    You may need to take some tutorials.

    LabVIEW Introduction course - 3 hours
    LabVIEW Introduction course - 6 hours

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How to get the column provided out of the Oracle Data Miner?

    Hi all!

    I use Oracle Data Miner provided with Oracle SQL Developer to predict the loss of customers. If I plan on the table column lets say X (as a target column) of table say T, so how can I get the corresponding values under my model?

    Here is the simplified model for the reference.

    Thanks in advance!

    Customer churn.PNG

    Hello

    Simply connect a node that accepts data to the node to apply it.

    For example, if you want to create a view or table table using the prediction of outputs generated by the node to apply it, and then add a Create Table node and connect the node to apply it.

    For more information, try the Oracle by example tutorials for ODMr.

    You must use the node apply Publisher to revise prediction outputs models to generate as well as the additional columns to include, for example columns id.

    There are a set of predictor columns added by default that may be acceptable.

    THX, mark

  • get the number of rows affected by their table top

    Hello, I need to count the number of rows updated in table form. In the process of ApplyMRU, I can use the string substitution #MRU_COUNT # to show the lines updated in a success message, but I need to get this value and store it on a table. Any help would be much appreciated. Thank you.

    oscarjavier99 wrote:

    Hello, I need to count the number of rows updated in table form. In the process of ApplyMRU, I can use the string substitution #MRU_COUNT # to show the lines updated in a success message, but I need to get this value and store it on a table. Any help would be much appreciated. Thank you.

    For that you would benefit from the APEX$ ROW_STATUS integrated substitution string.

    1. create a page element display only (in my case P15_UPDATED_ROWS) Save Session State set to Yes and the Type of Condition is set to never.

    2. Add a calculation after the shows with a Type of static assignment and calculation value 0 to reset the counter whenever the page is sent.

    3. Add an On submit - after calculations and Validations process of PL/SQL page linked to your tabular presentation with a Status of Type PL/SQL Expression and Expression 1 :apex$row_status = 'U' and the code of the following process :

    :p15_updated_rows := :p15_updated_rows + 1;
    

    If you don't actually means "day" in the strict sense, and then change the status of process to include possible APEX$ ROW_STATUS 'C', 'U', and "D" values as needed. If you want to count all created, updated and deleted lines, do not add the condition to the process, but make sure the extended run is set to createand changed lines.

  • Get the number of rows in the oracle table

    Hi all
    I want to get the total number of rows in the sql to the appmodule table.
    After you apply the criteria to view some on the view object. If he try with getallrowsinrange the number of rows found within the viewobject was but I want a total number of rows in the sql table.

    How can I get that

    I use jdev 11.1.1.5

    Thanks in advance

    I threw something together, quick and dirty, don't hesitate to optimize.

    Assuming you want the County table, I put the code in a subclass of EntityDefImpl since it is representing a table in the middle tier.

    public class EmpDefImpl
          extends EntityDefImpl {
      /**
       * This is the default constructor (do not remove).
       */
      public EmpDefImpl( ) {}
    
      //~ Methods ****************************************************************************
    
      public long getTableRowCount( DBTransaction transaction ) {
        String query = getQuery( );
        String countQuery = String.format( "SELECT COUNT(*) FROM (%s)", query );
        long count = 0;
    
        ViewObject vo = transaction.createViewObjectFromQueryStmt( countQuery );
    
        try {
          vo.executeQuery( );
    
          Row row = vo.first( );
          Number number = (Number)row.getAttribute( 0 );
          count = number.longValue( );
        } finally {
          vo.remove( );
        }
    
        return count;
      }
    }
    

    Depending on your card type, you may not get an oracle.jbo.domain.Number, but something else, so the cast may need correction.

    Usage example:

    public class EmpEditViewImpl extends ViewObjectImpl {
      public EmpEditViewImpl() {
      }
    
      protected void executeQueryForCollection( Object object, Object[] object2, int i ) {
        super.executeQueryForCollection( object, object2, i );
    
        EmpDefImpl def = ( EmpDefImpl )getEntityDef( 0 );
        long tableRowCount = def.getTableRowCount( getDBTransaction() ) );
    
        // Do something with it
      }
    }
    

    As you can see, the code is fairly generic. Also, you might be able to put this in a base extension ADF class.

    Sascha

    Published by: Sascha Herrmann on June 7, 2012 14:39

  • Get the columns returned by the query without running

    I have a table that stores SELECT queries in a column. I developed a .net application where the interesting thing for the user is what columns of the following SELECT statement returns. Currently, I load the sql as an OracleCommand object CommandText and fill a DataTable using an OracleDataAdapter object. I then read the names of the columns of the table filled. The data is not fully used. Requests can take up to 15 seconds to run. Because I do not used the data, I was hoping to eliminate the actual recovery of data and reduce the time needed to retrieve the records. Is it possible to analyze the statement for the colunm names with it makes the request for enforcement? Thank you.

    I imagine that there is a way you can search in the data dictionary, but you can also try to add 'WHERE 1 = 0' If you want the metadata.

    It will be useful,
    Greg

  • SQL help - Need help to rotate the columns to rows

    I have a HughesNet to divide the columns into multiple lines. For example:

    EMP_DEPT

    ROWID empid1 ename1 empid2 ename2 empid2 ename2 empid4 ename4 dept4 dep3 dep2 dept1
    100001 1 'SCOTT' 10 2 'DAVE' 20 3 10 4 20 SMITH "MILLER"
    100002 1 'SCOTT' 10 2 'DAVE' 20 3 'MILLER' 20

    Note: EMP_DEPT do not always have information about the 4 employees settled for example in info only 3 employees rank 2 are there

    I need to convert and insert it into the EMPLOYEE table as follows:

    EMPLOYEE

    EmpID ename dept
    1 SCOTT 10
    2 20 DAVE
    3 MILLER 10
    4 SMITH 20

    1 SCOTT 10
    2 20 DAVE
    3 MILLER 20

    Thank you
    KeV

    Hey Kevin,

    Here's one way:

    WITH t AS (
      SELECT level i FROM dual CONNECT BY level <= 4
    )
    SELECT enty_type, enty_name, enty_id
    FROM (
      SELECT case when mod(t.i,2) = 0 then 'DEPARTMENT'
                  else 'EMPLOYEE'
             end as enty_type
           , case t.i
               when 1 then emp_name1
               when 2 then dept_name1
               when 3 then emp_name2
               when 4 then dept_name2
             end as enty_name
           , case t.i
               when 1 then emp_id1
               when 2 then dept_id1
               when 3 then emp_id2
               when 4 then dept_id2
             end as enty_id
      FROM emp
           CROSS JOIN t
    )
    WHERE enty_id IS NOT NULL
    ;
    

    Another using the MODEL clause:

    SELECT *
    FROM (
      SELECT enty_id, enty_name, enty_type
      FROM emp
      MODEL
      RETURN UPDATED ROWS
      PARTITION BY (pk)
      DIMENSION BY (0 i)
      MEASURES(
         emp_id1, emp_name1
       , emp_id2, emp_name2
       , dept_id1, dept_name1
       , dept_id2, dept_name2
       , cast(null as number(10)) enty_id
       , cast(null as varchar2(200)) enty_name
       , cast(null as varchar2(30)) enty_type
      )
      RULES (
         enty_type[1] = 'EMPLOYEE' , enty_id[1] = emp_id1[0], enty_name[1] = emp_name1[0]
       , enty_type[2] = 'EMPLOYEE' , enty_id[2] = emp_id2[0], enty_name[2] = emp_name2[0]
       , enty_type[3] = 'DEPARTMENT' , enty_id[3] = dept_id1[0], enty_name[3] = dept_name1[0]
       , enty_type[4] = 'DEPARTMENT' , enty_id[4] = dept_id2[0], enty_name[4] = dept_name2[0]
      )
    )
    WHERE enty_id IS NOT NULL
    ;
    

    Published by: odie_63 on 8 Dec. 2010 21:00

  • Help in the data in the column of row data conversion

    Hi Oracle experts

    I have an output of the table that need to reformat. I want the output to be in an as columns show the OUTPUT REQUIRED article I know someone might have fact/accomplished before too, I tried in the open but could not find one.

    I would be grateful if someone answer this question or guide me how to start or direct me to the thread where this type of question is Huckleberry. I tried to do the rotation but could not get the success.

    Thank you

    Rajesh


    INPUT DATA

    YEAR OF THE SSN
    A1111111 2001
    A1111111 2002
    A1111111 2003
    A1111111 2004
    A1111111 2005
    B2222222 2005
    B2222222 2007
    B2222222 2008
    C3333333 2005
    C3333333 2006

    The REQUIRED POWER

    A1111111 (2001,2002,2003,2004,2005)
    B2222222 (2005,2007,2008)
    C3333333 (2005, 2006)

    Maybe this,.

    SQL> With t As
      2  (
      3  SELECT 'A1111111' SSN, 2001 "YEAR" From Dual Union All
      4  SELECT 'A1111111' SSN, 2002 "YEAR" From Dual Union All
      5  SELECT 'A1111111' SSN, 2003 "YEAR" From Dual Union All
      6  SELECT 'A1111111' SSN, 2004 "YEAR" From Dual Union All
      7  SELECT 'A1111111' SSN, 2005 "YEAR" From Dual Union All
      8  SELECT 'B2222222' SSN, 2005 "YEAR" From Dual Union All
      9  SELECT 'B2222222' SSN, 2007 "YEAR" From Dual Union All
     10  SELECT 'B2222222' SSN, 2008 "YEAR" From Dual Union All
     11  SELECT 'C3333333' SSN, 2005 "YEAR" From Dual Union All
     12  SELECT 'C3333333' SSN, 2006 "YEAR" From Dual
     13  )
     14  SELECT SSN
     15       , '(' || Rtrim(xmlagg(xmlelement(y,"YEAR" || ',').Extract('//text()')),',') || ')' "YEAR"
     16    FROM t
     17   Group BY SSN;
    
    SSN      YEAR
    -------- --------------------------------------------------------------------------------
    A1111111 (2001,2002,2003,2005,2004)
    B2222222 (2005,2007,2008)
    C3333333 (2005,2006)
    

    Kind regards
    Christian Balz

  • How can I get the columns-by-side?

    http://www.Adobe.com/devnet/Dreamweaver/articles/first_website_pt2_08.html

    In the creation of your first tutorial of Web site (see link) I can not understand how to recover the columns side by side are being stacked. I went on the indications of the tutorial at least five times. What I am doing wrong in coding?   Here is a picture of my screen:Dreamweaver.jpg

    Here is a screenshot of how the columns should be stacked (from the tutorial):

    Dreamweaver-1.jpg

    Take a look at where you graduate #center_column in the html code of the page. You have this:

    where it should be

    Because a class called 'center_column' has not been defined (somehow), it belongs to the following line.

    I saw your styles for all three columns, as IDs.

    Beth

Maybe you are looking for

  • Verification of password problem

    I'm operating an iPad myself using OS 9.3.3. When I try to update the applications on the device, it says that it cannot check the Apple ID and password. The Apple ID and password are valid as I can get into the 'manage... '. "Web page with them. Any

  • How to view the answers to my question?

    I'm registered, asked a question. Now where and how to display the answers?

  • Time capsule multi ip

    I do not understand why my TC (bridge) get 2 ip on my LAN I tried to assign a manual fixed ip and it uses this ip address, but if I am controlled with FRING App or program similar lan scan there an ip (192.168.0.2 and coincidentally 192.168.0.xx) It

  • Re: Qosmio F10 - impossible to reinstall the sound card driver

    Hello Recently, I uninstalled a program and my sound card driver has been uninstalled with it I'm running the Qosmio F10 with Windows XP. I have the file to reinstall the diver in the Toshiba page but when I try to install I get the error "driver is

  • How to convert one or more files LVM of large file TDMS (500 MB, 32 M samples - 2 channels)

    I would like to be able to read at least 4 million lines of data total 32 million lines at a time. The TDMS file has given for 2 channels and no time data. If I can convert TDMS files in one or more files LVM, I can read large files of LVM using the