Number of the column of a cell

Hello

I have a cell object and I want to know which column it's in. How do I do that with JavaScript? Thank you very much.

Rick

myCell.parentColumn.index;

Peter

Tags: InDesign

Similar Questions

  • The number of the column datatype story

    The number of the column datatype story

    Hello

    We have the existing DB table with created_by and updated_by NUMBER data type columns. I created EO/VO using the same table.

    As and when we click on + symbol for (insert a newline) browser of Oracle business components... Get the following error message

    Exception in thread "AWT-EventQueue-0" oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.lang.Long type: java.lang.String with value: covering

    As the old huge with content DB table. I'm sure, that I can not change the data type of these two columns in DB.

    I have a possibility to exclude these two columns when creating entity object.

    It would be great, if you can suggest other options to avoid this problem by including these two columns.

    JDev - 11.1.1.5.0

    Thank you

    LSs

    Now, I could solve the problem as you have suggested.

    Thank you

    MSR.

  • Matrix of distances: selection of values with the number of the column as a variable

    Hi all

    You wonder if SQL can do natively, let's go.

    I have a static table with the same amount of rows and columns, that changes forever; It represents the distances between locations (e.g. countries).
    It's basically a distance matrix (you can find a good example on Wikipedia ).

    My SQL statement must extract the distances of this matrix, based on the IDS of countries located in another table.
    Select a field is simple:

    SELECT * from cdistances where countryid =
    (select countryid from countries where upper (country) = upper (& getcountry));

    When I run the present, I get a line of all distances to all countries of the country I go when asked. But I would limit the outcome of a country of destination that I entered.

    Of course, a CASE statement would solve this nicely, but since we are talking more than 200 countries, which will become unmanageable.

    Another method that I approached is to use a variable as a column, as below:

    SELECT & getdestination of cdistances where countryid =
    (select countryid from countries where upper (country) = upper (& getcountry));

    It works well when I get directly the column identifier (manually from the keyboard) but I would like to automate even further.
    My names of columns in the matrix of distances are named as follows:
    countries1, countries2, countries3... country200 - where the number ID the real country, preceded by the constant string 'country '.
    So I tried to define a variable as a concat between 'country' and another variable:
    def getd2 = concat ("D2C", & testcountryid);
    Of course, it does not; the output of the script is:

    old: def getd2 = concat ('country', & testcountryid)
    New: def getd2 = concat ("country", 12)

    where I expected to be 'country12.

    I'm so little loss of thoughts. Maybe I'm pushing my train of thought in the wrong way, so I guess the general question would be: how to select a specific column of a table based on information outside the SQL statement dynamically?

    Hello

    I'm still confused.
    Is your table called chessking or testdistances, or you have 2 separate tables?

    I'm guessing that your single table is testdistances, and you want to pass a list of countryids, such as that of 3.1 to a query and get results as follows:

    `COUNTRYID  DISTANCE3  DISTANCE1
    ---------- ---------- ----------
             1         18         15
             3         13          1
    

    If so:

    DEFINE     country_list = "3,1"
    
    -- Preliminary Query, to set column_list
    COLUMN     column_list_col     NEW_VALUE column_list
    
    SELECT     'distance' || REPLACE ( '&country_list'
                               , ','
                         , ',distance'
                         )          AS column_list_col
    FROM    dual;
    
    -- Main Query
    SELECT     countryid
    ,     &column_list
    FROM     testdistances
    WHERE     countryid     IN (&country_list)
    ;
    

    Sorry, I'm out of time now. I'll explain more in a few hours.

  • Generation of a unique number on the columns.

    Hello

    Please check this query,

    < pre >

    SELECT DISTINCT A.LKP_ID AS ID
    D.PART_CNDTN_CD as a CONDITION
    D.PART_DISPOSTN_CD AS PROVISION
    C.LKP_NM AS DESCRIPTION
    OF FWOWNER. CLM_LKP_VALUE HAS
    FWOWNER. CLM_LKP_USAGE B
    FWOWNER. C CLM_LKP_VALUE_LANG
    IWOWNER. WC_CLM_SRVC_PART D
    WHERE B.LKP_USED_AS IN ('RR_CAUSAL_PART_CNDTN_CODE', 'rr_parts_disposition')
    AND A.LKP_REF BETWEEN B.LKP_REF AND B.LKP_REF + '.' 99999
    and A.LKP_ID = C.LKP_ID
    AND C.LANG_CD = 'ENG_USA. '
    AND A.LKP_LVL = 3
    and A.LKP_VALUE = BOX
    WHEN B.LKP_USED_AS IN ('RR_CAUSAL_PART_CNDTN_CODE')
    THEN D.PART_CNDTN_CD
    WHEN B.LKP_USED_AS IN ('rr_parts_disposition')
    THEN D.PART_DISPOSTN_CD
    END

    < / pre >


    top query let me out like,

    < pre >
    AVAILABLE FOR THE ID CODE DESCRIPTION
    ----- ------- ---------- ---------------------------------
    CP07 25774 REVAMPED bad calibration
    25789 CP22 leak (null)
    25795 CP28 scars / covered
    25796 CP29 (null) Warped/distorted/curly
    25768 CP01 PROCESSED Bent/pleated/Fold/bent/blister
    CP10 25777 chipped
    Contamination CP12 25779
    25786 CP19 grooved/crosses (null)
    25793 pitted CP26 (null)
    25768 CP01 (null) Bent/Creased/Fold/twisted/Crinkled
    25777 chipped CP10 (null)
    CP11 25778 Circuit (null) Bad
    25783 dented CP16 (null)
    25790 obsolete CP23 / supplant (null)
    25797 CP30 (null) worn too
    25798 CP31 (null) bad part
    * 25799 CP32 (null) other *.
    * Other CP32 25799 *.
    28225 CP07 REVIEW REVIEW
    25771 CP04 Broken/fractured (null)
    25779 CP12 Contamination (null)
    25780 CP13 corroded/eroded (null)
    25781 CP14 Cracked (null)
    25785 CP18 Galled/frettees (null)
    25788 CP21 (null) failure to point
    25795 CP28 Scarred/Spalled (null)
    CP30 25797 door too
    28225 CP01 REVIEW REVIEW

    28 response (s) selected [extract metadata: 0/ms] [extract data: 0/ms]


    < / pre >

    Please see the part "BOLD", I get two duplicates with a vertical drop of NULL and empty space I want to generate a unique number on the CONDITION column and available how to do this.


    (Please check my previous thread of reference
    MERGE TWO COLUMNS?
    )

    This is not Oracle...

    In any case:

    SELECT  DISTINCT A.LKP_ID          AS ID
    ,       D.PART_CNDTN_CD          as CONDITION
    ,       CASE WHEN LENGTH(D.PART_DISPOSTN_CD)=0 or D.PART_DISPOSTN_CD IS NULL THEN null ELSE D.PART_DISPOSTN_CD END  AS DISPOSITION
    ,       C.LKP_NM AS DESCRIPTION
    FROM     FWOWNER.CLM_LKP_VALUE          A
    ,     FWOWNER.CLM_LKP_USAGE          B
    ,     FWOWNER.CLM_LKP_VALUE_LANG      C
    ,     IWOWNER.WC_CLM_SRVC_PART     D
    WHERE     B.LKP_USED_AS          IN ( 'RR_CAUSAL_PART_CNDTN_CODE', 'rr_parts_disposition')
    AND     A.LKP_REF          BETWEEN     B.LKP_REF     AND     B.LKP_REF + '.99999'     -- No quotes
    and     A.LKP_ID          = C.LKP_ID
    AND     C.LANG_CD          = 'ENG_USA'
    AND     A.LKP_LVL          = 3
    and      A.LKP_VALUE          = CASE
                             WHEN  B.LKP_USED_AS     IN ( 'RR_CAUSAL_PART_CNDTN_CODE')
                             THEN  D.PART_CNDTN_CD
                             WHEN  B.LKP_USED_AS     IN ('rr_parts_disposition')
                             THEN  D.PART_DISPOSTN_CD
                          END
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • With the help of inplace column number of the column name in the SQL Select statement

    Is it possible to execute instructions select sql with the number of columns in
    place names of columns?

    Run SQL
    select AddressId,Name,City from Address
    Is it possible
    select 1,2,5 from Address
    Thanks in advance

    You can extract the names of the columns for user_tab_columns
    with

    SELECT Column_name
    FROM user_tab_columns
    where table_name = 'MY_TABLE'
    and Column_id in (1,2,5)
    

    Use dynamic SQL and then the result to get the values.

    But as others already mentioned, this wil it be given incorrect if your table is changed.

  • How to split the PHONE NUMBER in the column of database?

    Hello - how to split the telephone within the same column number?

    Existing column PHONE data

    3711943

    8744723

    8487928

    3349262

    I want to split the data in the same

    371-1943

    874-4723

    etc...


    Is this possible? I need to do this only through SQL query not PL/SQL.



    SUBSTR (your_col, 1, 3). » -'|| SUBSTR(your_col,4)

  • How to add the number of the column by another county sql statement

    My problem is

    SELECT Count (DISTINCT num) OF tmp_table;

    the foregoing will return 13.


    UPDATE seq_table a SET a.currentvalue = a.currentvalue + 1 + (SELECT Count(DISTINCT num) FROM tmp_table;)  WHERE a.seq_type LIKE 'ABC% ';

    the result of updating should be = a.currentvalue + 1 + 13

    How is that possible? There is syntax error...

    Not sure if this was clear ;-), but there's a semicolon behind tmp_table and SQL does not understand that.

    Then

    UPDATE seq_table SET a.currentvalue = a.currentvalue + 1 + (SELECT Count(DISTINCT num) FROM tmp_table) WHERE a.seq_type LIKE 'ABC% ';

  • How to map the csv (not columns) cells in the columns of table, import with sql loader

    Given «example.csv» csv file

    I want to load the data in:

    the C7 cell in column X

    cell D8 in column Y

    cell F7 in column Z

    Oracle table "exampletable" and so on. The csv file has not ordered rows and columns, so I can't just load the csv file into a new table itself. So what I'm asking is how to map to the columns in table cells load this file into Oracle (XE). Can someone point me to a tutorial?

    I know it's quite elementary, please let me know if I am sous-prescrit anything in the question.

    I ended up doing in Excel, through a very laborious process that will probably be repeated by others.

    What a pity that there is no functionality in Oracle for this kind of data import more flexible. Analysts of data often throw himself spreadsheets that look like this (or 485 of them) who must enter data one way or another.

  • column width of cells using the horizontal menu spry

    Hello

    Try to set the column width of cells using the Horizontal Spry DWCS5.5 menu.

    View-source: http://www.roatan.ws/spry-menu-bob

    I used the help to get directions and I think I did it correctly, but I don't know about you.

    / * Container of menu items are same fixed width parent * /.

    UL. MenuBarHorizontal ul li

    {

    background-color: #356A 68.

    float: none;

    background-color: transparent;

    height: auto;

    Width: auto;

    }

    Try to clean up my site and make things just one in search of work.

    Any suggestions appreciated

    Bob

    Spry menus contain all the columns in the table or cells.    They are just lists

    • with CSS style tags.

      UL. MenuBarHorizontal li

      {

      margin: 0;

      padding: 0;

      list-style-type: none;

      do-size: 12px;

      position: relative;

      text-align: center;

      cursor: pointer;

      Width: 8th; / * adjust top-menu width * /.

      float: left;

      text-decoration: underline;

      }

      UL. MenuBarHorizontal ul

      {

      margin: 0;

      padding: 0;

      list-style-type: none;

      do-size: 10px;

      z index: 1020;

      cursor: default;

      Width: 8th; / * Adjust submenu width * /.

      position: absolute;

      left:-1000em;

      background-color: #356A 68.

      }

      Nancy O.

      ALT-Web Design & Publishing

      Web | Graphics | Print | Media specialists

      http://ALT-Web.com/

      http://Twitter.com/ALTWEB

      http://ALT-Web.blogspot.com/

  • If then the value of another cell - using the syntax visible

    My form is saved in dynamic PDF, the table is a set number of lines, opted in the case of this form cannot have repeating lines.  I am trying to simulate the index number of the column 1 depending on whether the cell column 2 on the same line is empty or not.  If a value is entered in the 2nd cell, I hope to see the default value of the 1st column by rank.  Here is where I am today, but no luck.  Not sure what event to place.  Right now, it's in the event of modification of a read-only cell in the 1st column.  Have also tried formcalc, but had no luck there, either.  Is there a better way to simulate an index when the table is static?  Thank you!

    Reading single column
    This column - empty or whose value should trigger the left column to display or not




     SPO.sfrmBOM.Table1.Row1[0].Cell1::change - (JavaScript, client)
    
    if (SPO.sfrmBOM.Table1.Row1.Cell2.rawValue == null  || SPO.sfrmBOM.Table1.Row1.Cell2.rawValue.length = 0)
      this.presence = "hidden";
    else
      this.presence = "visible";
    endif
    

    You could do something like (in formcalc in the output of Cell2 event):

    If ($.isNull) then

    Cell1 = «»

    of another Cell1 = '2 '.

    endif

    in this way, you don't have to have a default value and hid it originally, just leave it empty at the beginning.

  • I need to convert PDF to Excel, however, the columns and tabs make many merged cells and the number of columns empty. In addition to not separate the columns properly, I see many not separate lines together in the same cell. I think same as Adobe Acrobat

    I need to convert PDF to Excel, however, the columns and tabs make many merged cells and the number of columns empty. In addition to not separate the columns properly, I see many not separate lines together in the same cell. I even think that Adobe Acrobat Pro DC has limits. There is no way to set what points in columns to force the column break? Or create several columns that are unnecessary? How column in Excel, size fixed when import us text and define where breaks have columns of text?

    Google Tradutor para empresas:Google para appsTradutor sitesGlobal market Finder traducao Toolkit

    Acts traducao Instantaneasobre o Google TradutorCelularComunidadePrivacidade e TermosAjudaEnviar comments

    PDF does not contain columns, lines, formats, styles or other aspects of word processing or spreadsheet file formats.

    This is because the PDF is decidedly not a file format of word processor or a spreadsheet or something 'like' one of these.

    (see ISO 32000 for what PDF "is")

    Which allows to optimize the export of the content of a page PDF is to start with that tag well formed PDF (ISO 14289-1, PDF/UA-1).

    Without that export is what it is and we performs the cleanup of any necessary content using the native application for the export of files (MS Word or Excel).

    Be well...

  • A formula allows the last number in a column?

    Is it possible to have a work formula with the last number in a column or line automatically?

    For example:

    Col Col B

    Jan                    20

    21 Feb

    Mar                    18

    Apr                    16

    May

    Jun

    Jul

    I would like to be able to have a use form the last number in column B. I'll add the numbers to the list each month. And the sort numbers is not realistic because of the aspect from month to month.

    I know that I can change the formula of each month, but automatic is less prone to errors. It doesn't seem to be a function of 'last '. I work in the latest version of numbers and prefer not to spend at Excel.

    Any suggestions?  Thank you.

    .. Doug

    If you have no empty cells in the column, you can do something like this:

    = INDEX (array 1::B, COUNTA (table 1::B) + 1).

    The + 1 is necessary if there is a header row.

    SG

  • Scan of the columns in table for empty cells

    I have prepared a form that will do the following (Please bear with me for the description):

    The form opens with a table of 10 rows.  The user must enter sides (from 0 to 10) in one of the columns in the table.  Once the user enters all the ratings of ten, he or she must then click a button to turn on the rest of the form (which is hidden).  What I'm trying to do is, after the button is clicked, scan the table to ensure that the entire column was filled with a number.  If the column was made, then a second page.  If a cell in the column was left in white, then I want a prompt to appear and indicate to the user which cell is empty.  I was able to run by using the following code:

    This code is under the event 'click '.

    If (decisionMatrix.dMTable.Row4.rating.rawValue is nothing)
    {
    Poster a warning prompt that indicates the form is incomplete

    xfa.host.messageBox ("incomplete form.  Please fill in the background. ","warning ", 3);
    }
    on the other
    {
    Allow the user to save the current state of the form and activate the second part of the form.
    app.execMenuItem ("SaveAs");
    }

    The problem with the above method is that it checks only the Row4 cell.  I have to add more code for the other 9 rows in the table and for each message box, indicating to the user which field to fill.  Is there a better way to do it?  A switch-case perhaps statement?

    I have also considered the column full analysis at a time and just using a message box general for the table, using the following code:

    If (decisionMatrix.dMTable.Row [*].rating.rawValue is nothing)

    {
    Poster a warning prompt that indicates the form is incomplete

    xfa.host.messageBox ("incomplete form.  Please fill all of the scoring. ","warning ", 3);
    }

    ...

    But it doesn't seem to work.  Any help is appreciated.  Thank you.

    The seal contains a table with 10 rows and 3 columns (a_, b_ and c_). The calls button 'Continue' by clicking on the click event, which runs through the table looking for NULL values in each column per row. The "ratingMissing" flag controls the visibility of the page 2.

    Form1.Page1.Subform1.continueBtn::click - (JavaScript, client)

    var ratingMissing = false;

    for (var i = 0; i)< 10;="" i++)="">

    var line = i + 1;

    If (xfa.resolveNode("form1.page1.subform1.table.row["_+_i_+_"].a_").rawValue == null) {}

    xfa.host.messageBox ("A is missing in row"+ row);

    ratingMissing = true;

    }

    If (xfa.resolveNode("form1.page1.subform1.table.row["_+_i_+_"].b_").rawValue == null) {}

    xfa.host.messageBox ("B is not in the line" + row);

    ratingMissing = true;

    }

    If (xfa.resolveNode("form1.page1.subform1.table.row["_+_i_+_"].c_").rawValue == null) {}

    xfa.host.messageBox ("C is missing in the row" + row);

    ratingMissing = true;

    }

    }

    If (ratingMissing == false) {}

    Form1.Page2.presence = "visible";

    }

    else {}

    Form1.Page2.presence = 'hidden ';

    }

    Steve

  • How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    If you want the formula is the same (B2 - C2) in the cell of each column you must change it as ($B$ - 2$ C$ 2). Then copy it, select the whole column and paste.

  • valor en el number provided excel buscar una Tabla of la fila y el of the column

    Hola; Quisiera hacer para buscar una tabla con el valor as Trin excel in VI el number of la fila y el of the column that is. For example, tabla FR the siguiente, introduciendo Fila 2 Columna of y 3 should provide the value 12. Gracias.

    Column 1

    Column 2

    Column 3

    Fila 1

    10

    21

    45

    Fila 2

    8.5

    5

    12

    Fila 3

    1.2

    20.3

    4.6

    Perfecto. A millon of gracias.

Maybe you are looking for