Defining the field level line in the table using jQuery

Hello

I am using the following command for reading and then set the values in the same row in a report.
Re: Referring to a value of field line in an interactive report using jquery

Consider the following excerpt
// read information eg
var row = $x_UpTill(this.triggeringElement, 'TR');
var dateCompleted = $('input[name="f03"]', row)[0];
console.log(dateCompleted.value);
// write information eg
var dateBooked = $('input[name="f02"]', row)[0];
//dateBooked.value = 'xyz'; // sets to xyz, as expected
dateBooked.value = return_date; // sets the actual code, not returning string
Everything works as I expect except the last line. I have a js function returns a formatted string (Date set with Javascript , but in this case, my field now contains the definition of the actual code, not the date string the function actually returns.

I don't think that I'm just not understand a simple concept for JavaScript here?

A simple solution might be to create the P0_SYSDATE, calculated field to TO_CHAR(SYSDATE,:F_DATE_FORMAT), then apply
dateBooked.value = $v('P0_SYSDATE');
but I'm trying to improve my understanding of javascript/jQuery...

See you soon,.

Scott

So are you saying that return_date is a function real javascript, which returns the document to the format string/date you want?
If so, then I think you simply need parenthesis to function:

dateBooked.value = return_date();

Or... I'm missing something here?

Thank you
-Jorge

Tags: Database

Similar Questions

  • How to insert image from mysql into the table using php and create the checkbox in the table?

    How can I insert image from mysql into the table using php and create the checkbox for each data as a vote? Here is my code...

    WELCOME

    connect_error) {die ("connection failed:".)} $conn-> connect_error); } $sql = "SELECT no, Calon, ID, of course, the Image OF THE candidates." $result = $conn-> Query; If ($resultat-> num_rows > 0) {echo ' '; export data of each line while ($row = $result-> fetch_assoc()) {"echo"}}
    NO Candidate INFO Vote
    " . $row ["no"]. "-" . $row ["Calon"]. "
    -" . $row ['ID']. "
    -" . $row ['class']. "
    "; } ECHO ' ' ;} else {echo '0 results' ;} $conn-> close();?} >

    hope someone can help me because I am a newbie in this program... need to finish this project... Thank you.

    If you have saved the file name in the database, it's pretty simple.

    echo '' . $row['description'] . '';
    

    Is the same for the box:

    echo '';
    

    If you have saved the image file in the database, it is much more complicated. I recommend you store only the file name in the database.

  • How to know the tables used in packages of a schema.

    How to know the tables used in packages of a pattern that I have connected.

    SELECT DISTINCT referenced_owner, referenced_name

    Of all_dependencies

    Owner WHERE = "MY_USER_NAME".

    AND type ('PACKAGE', 'BODY of PACKAGE')

    AND referenced_type = 'TABLE '.

  • The table used to run very quickly

    I read about 22000 records of weak financial data in a graph of candel stick. The table used to run very quickly, but now it works slow Koala after some small changes. Ideas of probable causes?

    I figured out that the disabledDays was originally the slow almost 10 times slower

    disabledDays = "{offDays}.

  • Trying to create the table using Clause any Union with Select multiple stmts

    The motion seeks to get the substring of the value to for example.
    If the value is * ASA 2 * then so do ASA
    where as if the value is * 1.5 TST * it sholud come as TST as wise for others too.
    I am trying to execute stmt SQL written but in error as below:

    * ' ORA-00998 must appoint this expression with the alias column 00998.00000 - must appoint this expression with the column alias. "

    CREATE TABLE TEST_CARE AS
    (
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 5
    UNION ALL
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 7
    UNION ALL
    SELECT row_id, old_care_lvl, SUBSTR(old_care_lvl,3), len test_care_lvl FROM
    WHERE LENGTH (old_care_lvl) = 14
    UNION ALL
    Row_id SELECT, old_care_lvl, SUBSTR (old_care_lvl, 3), LEN test_care_lvl
    WHERE LENGTH = 7 AND old_care_lvl (old_care_lvl) = "Regular."
    );

    I want to create the table using the above given the multiple selection by using the Union ALL clause, but trying to create run query error like "ORA-00998 must appoint this expression with the alias column 00998.00000 - must appoint this expression with the column alias.

    Please guide me how to approach to solve this problem.
    Thanks in advance.

    Try this->

    CREATE TABLE TEST_CARE
    AS
      select *
      from (
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =5
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =7
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =14
              UNION ALL
              SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
              WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
          );
    

    N.B.: Not tested...

    Kind regards.

    LOULOU.

  • passing the field id as arrays in detail using Jquery DA Javascript master

    Hello! IM new at the Apex and javascript. I have a problem with javascript in my application!
    I have the form master detail. in detail, I have a field 'condition_Clause' that some information on this area going to two elements on the page in another region on this page using javascript in a dynamic action based on JQUERY:

    H2. When
    Event: Get Focus
    Selection type: Jquery Selector
    jQuery Selector: input [name = "f09"] - it's "condition_Clause" field in form id
    Condition: no strings attached


    H2. Action
    Set value
    Type: Javascript
    $x_Value ("P36_FIELD_ID", 'f09_' + this.triggeringElement.id.split ('_') [1]);
    affected item: Jquery selector
    jQuery Selector: #f06 - I do not know this is good or not, + but + it works

    as you know I want to copy the id field in a table to a different field in the page: "P36_FIELD_ID".
    -------------------------------------
    now what is my problem? This code works once im works with save and retrieve documents in my form but when I try to catch some field_id after adding a new line to tabular detail , it does not work for her and affects P36_FIELD_ID null! It just does not work for new records, which are not registered!


    IM using
    Request Express 4.2.1.00.08
    Oracle DB: 11.2.0.3
    browser firefox and chrome (latest versions)

    Please help me! Thank you

    Hey Amir,

    You must define the scope of the event to the dynamic action of "dynamic".
    In this way the dynamic action will also be linked to the new lines in the form of your table.

    Kind regards
    Erik-jan

  • access to the content of new rows in a table using jQuery

    Hi all

    can I access online in newly created lines (not yet inserted DB) as a table with jQuery?

    I'm changing the value of the column, when the value in the other column is changed. But it only works for lines in a table that are already in DB. It does not work when the line is still in DB (change on the column is not recognized?).

    My test application
    [my test apply | www.apex.oracle.com]
    name of user/passwd
    [email protected]/kurintest
    workspace
    kurintest
    application:
    * 2636 *.

    I'm changing the value in the COMM column when the value in the SAL column is changed.

    Hello

    Because your event dynamic action field was binding, it has defined onclick only existing items from Manager. It does not affect the items created for example by JavaScript (addRow) after dynamic action is triggered.

    Your solution of dynamic action could work if you change event extended to live.

    You can read more info on link and live from the jQuery site
    http://API.jQuery.com/bind/
    http://API.jQuery.com/live/

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to purge the tables using odi?

    Hello

    I want to purge the data in the target. That data my political is to remember that the only 90 days. I have to keep the only 90 days of data. How can I do this in ODI. I don't have a single column DATE.

    Thank you

    Kind regards
    AMSII

    If your existing date field can be used to identify records to be served, then you can simply create a procedure in ODI along the lines of

    delete of < %="odiRef.getSchemaName" ()="" %=""> . * your_table * where your_date_field< (sysdate="" -="">

    It of the easiest way, but beware of your index finger on the table, that they don't get too fragmented. You might also consider using a strategy of daily score on the table that would allow you to remove partitions over 90 days, which would be much faster.

  • Set the table using CSS: table, tr, th

    I'm looking to define a table using CSS format.  By browsing items in the school of W3 and google, I defined the next element in the CSS nickname:

    {table. Members}
    do-family: Arial, Helvetica, without serif.
    do-size: 11px;
    make-style: normal;
    make-weight: bold;
    Color: #000000;
    text-align: left;
    padding: 2px;
    vertical-align: top;
    white-space: normal;
    }

    {Th.Members}
    Color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 3px;
    background-color: #808080;
    make-weight: bolder;
    }

    {TR. Members}
    Padding: 6px;
    Color: #000000;
    do-size: 11px;
    border: 1px solid #000000;

    }

    The name of my table is 'members' and I attribute the code of the 'members' class to the table.  The CSS for table.members seems to be inferred correctly page.  However, the tr.members th.members and the definition header line are not.

    Can someone comment on what I need to fix?  Here is a link to the web page.

    http://aosweb.org/Membershipx/bbmember_list.php

    Thank you.

    What follows instead... Note the new line of code in red and the comment beside her

    {table. Members}
    do-family: Arial, Helvetica, without serif.
    do-size: 11px;
    make-style: normal;
    make-weight: bold;
    Color: #000000;
    text-align: left;
    padding: 2px;
    vertical-align: top;
    white-space: normal;
    border-collapse: collapse;  / * This is what prevents the double border on cells * /.
    }

    different th {}
    Color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 3px;
    background-color: #808080;
    make-weight: bolder;
    }

    / * apply the style to thenot the*/

    different td {}
    Padding: 6px;
    color: #0000CC;
    do-size: 11px;
    border: 1px solid #000000;
    }

    The above should work.  I have here an example of an example of worksheet:

    http://www.DreamweaverResources.com/tutorials/TableCellBorders.htm

  • Change the Tables using Incontext?

    How I can change tables using Incontext or is there a better way to display the information?  I have the code from the table below.

    Thank you

    Jeremy

    < table width = "100%" border = "0" >
    < b >
    < td colspan = "4" align = "center" > < strong class = "schedule_header" > Varsity schedule/results < facilities > < table >
    < /tr >
    < class tr = "schedule_text" >
    < td align = "center" class = "schedule_text" > < Date strong > < / strong > < table >
    < td align = "center" > < strong > time < facilities > < table >
    < td align = "center" > < strong > opponent < facilities > < table >
    < td align = "center" > < strong location > < / strong > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Friday, September 4, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > Richfield </span > < table >
    < td align = "left" > < span class = "schedule_text" > Richfield high school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Friday, September 11, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > St. Thomas Academy </span > < table >
    < td align = "left" > < span class = "schedule_text" > current school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Friday, September 18, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > Tartan </span > < table >
    < td align = "left" > < span class = "schedule_text" > Tartan school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Friday, September 25, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > Henry Sibley </span > < table >
    < td align = "left" > < span class = "schedule_text" > current school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Friday, October 2, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > Mahtomedi </span > < table >
    < td align = "left" > < span class = "schedule_text" > Mahtomedi </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Friday, October 9, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > North High School </span > < table >
    < td align = "left" > < span class = "schedule_text" > current school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Wednesday, October 14, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:00 </span > < table >
    < td align = "left" > < span class = "schedule_text" > South St. Paul </span > < table >
    < td align = "left" > < span class = "schedule_text" > current school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < span class = "schedule_text" > Wednesday, October 21, 2009 </span > < table >
    < td align = "left" > < span class = "schedule_text" > 19:30 </span > < table >
    < td align = "left" > < span class = "schedule_text" > Chanhassen </span > < table >
    < td align = "left" > < span class = "schedule_text" > Chanhassen high school </span > < table >
    < /tr >
    < b >
    < td align = "left" > < table >
    < td align = "left" > < table >
    < td align = "left" > < table >
    < td align = "left" > < table >
    < /tr >
    < b >
    < td colspan = "4" align = "center" class = "schedule_header" > < strong B team schedule/results > < / strong > < table >
    < /tr >
    < b >
    < td align = "center" class = "schedule_text" > < Date strong > < / strong > < table >
    < td align = "center" class = "schedule_text" > < strong > time < facilities > < table >
    < td align = "center" class = "schedule_text" > < strong > opponent < facilities > < table >
    < td align = "center" class = "schedule_text" > < strong location > < / strong > < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Thursday, September 3, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > < table > Richfield
    < td align = "left" class = "schedule_text" > school Richfield < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Thursday, September 10, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > Academy St. Thomas < table >
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Thursday, September 17, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > < table > Tartan
    < td align = "left" class = "schedule_text" > high school Tartan < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Thursday, September 24, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > Henry Sibley < table >
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Thursday, October 1, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > < table > Mahtomedi
    < td align = "left" class = "schedule_text" > Mahtomedi high school < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Thursday, October 8, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > North High School < table >
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Tuesday, October 13, 2009 < table >
    < td align = "left" class = "schedule_text" > 16:00 < table >
    < td align = "left" class = "schedule_text" > South St. Paul < table >
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < /tr >
    < b >
    < td colspan = "4" align = "center" class = "schedule_header" > < rank of 9th forts > calendar/results < facilities > < table >
    < /tr >
    < b >
    < td align = "center" class = "schedule_text" > < Date strong > < / strong > < table >
    < td align = "center" class = "schedule_text" > < strong > time < facilities > < table >
    < td align = "center" class = "schedule_text" > < strong > opponent < facilities > < table >
    < td align = "center" class = "schedule_text" > < strong location > < / strong > < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Friday, September 4, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > < table > Richfield
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Friday, September 11, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > Academy St. Thomas < table >
    < td align = "left" class = "schedule_text" > St. Thomas Conservatorium < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Friday, September 18, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > < table > Tartan
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Friday, September 25, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > Henry Sibley < table >
    < td align = "left" class = "schedule_text" > high school Henry Sibley < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Friday, October 2, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > < table > Mahtomedi
    < td align = "left" class = "schedule_text" > current < table > school
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Friday, October 9, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > North High School < table >
    < td align = "left" class = "schedule_text" > < table > TBA
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > Wednesday, October 14, 2009 < table >
    < td align = "left" class = "schedule_text" > 15:45 < table >
    < td align = "left" class = "schedule_text" > South St. Paul < table >
    < td align = "left" class = "schedule_text" > SSP - Ettinger Field < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < /tr >
    < b >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < td align = "left" class = "schedule_text" > < table >
    < /tr >
    < /table >

    Event is on line.

    You could use a region group repeated on the TBODY element around each section of calendar/results and have a region that is repeated for each event. The cells in a table to the line of the event could be regions editable for details of the event.

    In this way, you can add, remove, rearrange and change events.

    You cannot use another repeating region group to manage the categories of events (Add/Remove) (Varsity, team B, 9th year) because of the repeating region groups cannot be nested.

    Here is the code:


                                         

                                            Varsity schedule/results
                                         
                                         
                                            Date
                                            Time
                                            Opponent
                                            Location
                                         
                   
                                         
                                            Friday, September 4, 2009
                                            19:00
                                            Richfield
                                            Richfield High School
                                         
                                         
                                            Friday, September 11, 2009
                                            19:00
                                            School of Saint Thomas
                                            Current High School
                                         
                                         
                                            Friday, September 18, 2009
                                            19:00
                                            Tartan
                                            Tartan high school
                                         
                                         
                                            Friday, September 25, 2009
                                            19:00
                                            Henry Sibley
                                            Current High School
                                         
                                         
                                            Friday, October 2, 2009
                                            19:00
                                            Mahtomedi
                                            Mahtomedi
                                         
                                         
                                            Friday, October 9, 2009
                                            19:00
                                            North High School
                                            Current High School
                                         
                                         
                                            Wednesday, October 14, 2009
                                            19:00
                                            South St. Paul
                                            Current High School
                                         
                                         
                                            Wednesday, October 21, 2009
                                            19:30
                                            Chanhassen
                                            Chanhassen High School
                                         
                                         
                                           
                                           
                                           
                                           
                                         
                   
                                         
                                            B team schedule/results
                                         
                                         
                                            Date
                                            Time
                                            Opponent
                                            Location
                                         
                   
                                         
                                            Thursday, September 3, 2009
                                            16:00
                                            Richfield
                                            Richfield High School
                                         
                                         
                                            Thursday, September 10, 2009
                                            16:00
                                            School of Saint Thomas
                                            Current High School
                                         
                                         
                                            Thursday, September 17, 2009
                                            16:00
                                            Tartan
                                            Tartan high school
                                         
                                         
                                            Thursday, September 24, 2009
                                            16:00
                                            Henry Sibley
                                            Current High School
                                         
                                         
                                            Thursday, October 1st, 2009
                                            16:00
                                            Mahtomedi
                                            Mahtomedi High School
                                         
                                         
                                            Thursday, October 8, 2009
                                            16:00
                                            North High School
                                            Current High School
                                         
                                         
                                            Tuesday, October 13, 2009
                                            16:00
                                            South St. Paul
                                            Current High School
                                         
                                         
                                           
                                           
                                           
                                           
                                         
                   
                                         
                                            9th grade schedule/results
                                         
                                         
                                            Date
                                            Time
                                            Opponent
                                            Location
                                         
                   
                                         
                                            Friday, September 4, 2009
                                            15:45
                                            Richfield
                                            Current High School
                                         
                                         
                                            Friday, September 11, 2009
                                            15:45
                                            School of Saint Thomas
                                            St. Thomas Academy
                                         
                                         
                                            Friday, September 18, 2009
                                            15:45
                                            Tartan
                                            Current High School
                                         
                                         
                                            Friday, September 25, 2009
                                            15:45
                                            Henry Sibley
                                            Henry Sibley High School
                                         
                                         
                                            Friday, October 2, 2009
                                            15:45
                                            Mahtomedi
                                            Current High School
                                         
                                         
                                            Friday, October 9, 2009
                                            15:45
                                            North High School
                                            TBA
                                         
                                         
                                            Wednesday, October 14, 2009
                                            15:45
                                            South St. Paul
                                            SSP - field Ettinger
                                         
                                         
                                           
                                           
                                           
                                           
                                         
                                         
                                           
                                           
                                           
                                           
                                         
                       
                                    

    Kind regards

    Dan Popa

  • insert into the table using the loop and permanently display

    Hello

    I am trying to insert some values of loop loop run into two tables and trying to draw using Graph XY. I need values Joanie be inserted one by one in each iteration. But at the end of the iteration in the table, I get only last value... can someone help me?

    Hello Manu,

    use a shift register to store each table. BuildArray allows to add/Add (not Insert!) of new values in the table.

    Then you need not use an ExpressVI to create the chart, a knot simple bundle (as indicated in the context-sensitive help) is enough to create a field in a XY Chart...

    Example with a table:

    Keep in mind:

    It's not (memory/CPU time) effective to use for time of data acquisition time (giving rise to large Bay). Use different approaches then...

  • Apply the Style to the table using Extendscript CC cell text

    Hello

    I have the following code. I try to scan a document and a specific keyword research based on the regex. That part works. I then get the range of text for those keywords and the highlighted text. This method works. What does not work, it is when I try to do the same in the text that is in a table cell.

    #target framemaker
    
    var doc = app.ActiveDoc;
    var totalPgfs = 0;
    
    var pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
    
    function do_table_work(pgf){
        var result = pgf.GetText(Constants.FTI_TblAnchor);
        var all_text = '';
        for (var i = 0; i < result.length; i += 1) {
            var t_object = result[i].obj;
            var t_cell = t_object.FirstRowInTbl.FirstCellInRow;
            while(t_cell.ObjectValid()){
                var cell_items = t_cell.GetText(Constants.FTI_String);
                var tr = new TextRange();
                 tr.beg.obj = tr.end.obj = pgf;
    
    
                 tr.beg.offset = 0; //this is built dynamically
                 tr.end.offset = 7; //this is built dynamically
    
                apply_char_format(text_range)
                t_cell = t_cell.NextCellInTbl;
            }
        }
    }
    
    function apply_char_format(text_range, name) {
        var color = doc.GetNamedColor(name);
        if (color.ObjectValid()) {
            var set_val = new TypedVal();
            set_val.valType = Constants.FT_Integer;
            set_val.ival = true;
            doc.SetTextVal(text_range, Constants.FP_UseBkColor, set_val);
    
    
            set_val.valType = Constants.FT_Id;
            set_val.obj = color;
            doc.SetTextVal(text_range, Constants.FP_BkColor, set_val);
        } else {
            alert('Color does not exist');
        }
    }
    
    while (pgf.ObjectValid()) {
        do_table_work(pgf);
        pgf = pgf.NextPgfInFlow;
    }
    

    The problem is that it is not highlighting the text in the table cell as I want it. If I process the document and use the following syntax:

    var result = pgf.GetText(Constants.FTI_String);
    

    It will highlight the text (with extra code to loop through these results).

    Any thoughts on what I'm missing?

    Hi Green,

    I don't have time to debug this script completely, but I see things that seem unusual.

    1. var result is TFP. GetText (Constants.FTI_TblAnchor);
    2. var all_text = ";
    3. for (var i = 0; i)< result.length;="" i="" +="1)">
    4. var t_object = .obj result [i];
    5. var t_cell is t_object. FirstRowInTbl.FirstCellInRow;
    6. While (t_cell. {ObjectValid()})
    7. var cell_items is t_cell. GetText (Constants.FTI_String);
    8. var b = new TextRange();
    9. TR. Beg.obj = tr.end.obj = bmp;

    GetText() is valid for a table cell, I don't know if that's what you want. I think I want to explore the individual paragraphs. I'm not quite clear on what this code does do exactly, but it seems that this would make it much easier to implement the text ranges. GetText() will cover all the paragraphs in a cell, if there are several.

    Added to this, your line "tr.beg.obj = tr.end.obj = bmp;" makes no sense to me, because you're coming back the paragraph which contained the anchor point of the table. In other words, you just leave the table entirely.

    So it's just a few riddles, but it seems more likely that you would something along these lines:

    1. var t_cell is t_object. FirstRowInTbl.FirstCellInRow;
    2. While (t_cell. {ObjectValid()})
    3. var cellPgf is t_cell. FirstPgf;
    4. var cell_items = cellPgf.GetText (Constants.FTI_String);
    5. var b = new TextRange();
    6. TR. Beg.obj = tr.end.obj = cellPgf;

    Hope this helps some.

    Russ

  • Need to get a list of the tables used in a PC using a query to USER_SOURCE

    We would like to re - design an integration application using synonyms, pointing to a DB link. Now, we use the names of the tables.  The tables can be found in a remote database.

    We want to deal with in our local database instead of the treatment in the 32 remote DBs.

    To determine the size of the re-design and development, we want to know how many different tables, we used in our package which has more than 6,000 lines of code.

    When we issue you with this query:

    Select text From User_Source Where Name = 'INT_PKG' and Type = 'PACKAGE BODY' and Lower (Text) Like '% % ';

    We get lines like this:

    IN double v_ret_val;

    OF cmn_reg_reports m, case_reg_reports c

    OF case_master c

    OF case_assess

    OF the double

    OF case_master

    etc.

    Now I want the output voltage:

    Double

    cmn_reg_reports m, case_reg_reports

    case_master

    case_assess

    Basically, I want to get a list of tables that I used in this package.

    How can I do it using REGULAR EXPRESSIONS?

    Why need to fetch from user_source... !

    Instead you can easily get Table reference in the user_dependencies procedure!

    Look for them

    REFERENCED_OWNER, REFERENCED_NAME to REFERENCED_TYPE = "TABLE".

    Select

    referenced_owner,

    referenced_name,

    referenced_type

    Of

    dba_dependencies

    where

    name = "proc_name".

    and

    owner = 'owner_name '.

    AND referenced_type = 'TABLE ';

  • SQL with the Table using nested

    Hello

    Please help how to do that thing

    I have a nested table of object type

    create or replace type a1 as an object

    (

    a number,

    b varchar2 (30),

    VARCHAR2 (30) region

    );

    create table a1 type a1_array s;

    declare

    v_a1 a1;

    v_a1_array a1_array:=a1_array();

    Start

    v_a1 = a1 (1, '1', 'AUS');

    v_a1_array. EXTEND;

    v_a1_array (1): = v_a1;

    v_a1 = a1 (2, '2', 'AUS');

    v_a1_array. EXTEND;

    v_a1_array (2): = v_a1;

    v_a1 = a1 (3, '3', 'NAM');

    v_a1_array. EXTEND;

    v_a1_array (3): = v_a1;

    end;

    Now, I v_a1_array have 3 row 2 with region AUS and the other with NAM region.

    SQL help can I get lines only "AUS" and look in the TABLE OF TYPE v_a1_array (using Where clause and functions (Table))

    Any help will be much appreciated. Please help. I have Oracle 11g

    Thank you

    I hope that you are looking for this.

    pretend like your excel temp (with clause)

    v_a2 - is a type of a1_array

    SQL > select * from v version $;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    SQL > DROP TYPE a1_array;

    Type fell.

    SQL > DROP TYPE a1;

    Type fell.

    SQL > CREATE or REPLACE TYPE a1 AS OBJECT
    2 (a NUMBER, b VARCHAR2 (30), region VARCHAR2 (30));
    3.

    Type of creation.

    SQL > CREATE TYPE a1_array IS TABLE of a1;
    2.

    Type of creation.

    SQL > DECLARE
    v_a1 2 a1_array;
    3 v_a2 a1_array;
    4 BEGIN
    5 WITH temp
    6 AS (SELECT 1 a, 1 b, "AUS" AS region FROM DUAL
    7 UNION ALL
    8. SELECT 2 AS a, 2 b, "AUS" AS region FROM DUAL
    9 UNION ALL
    10. SELECT 3 a, b '3', 'NAM' AS region OF DOUBLE)
    11. SELECT a1 (x.a, x.b, x.region)
    In BULK 12 COLLECT IN v_a1
    Temp 13 x;
    14
    15 SELECT a1 (x.a, x.b, x.region)
    In BULK 16 COLLECT IN v_a2
    TABLE (v_a1) 17 x
    18 WHERE x.region = 'NAM ';
    19
    20
    21 FOR I IN 1... v_a2. COUNTY
    22 LOOP
    (23) DBMS_OUTPUT.put_line
    24 v_a2 (i) .a | '-' || v_a2 (i) .b | '-' || v_a2 (i) .region);
    25 END OF LOOP;
    26 END;
    27.
    3-3-NAM

    PL/SQL procedure successfully completed.

    SQL > spool off;

  • 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

Maybe you are looking for

  • DAQmx for DAQcard6042E fails the self-test. Inherited data acquisition is OK.

    The computer I'm working on was provided by my client with LabVIEW 7.1 and the 6024E installed.  They had obviously written a program or two with this configuration, using Legacy DAQ screw.  (Of course) I would use DAQmx instead, but I'm having no lu

  • Como instalar el dispositibo audio

    Hola nesesito mucha Ahmed ayer estaba goes musica y mark subirle y despues wedding escucho nada y el audio tiene una tachita y no puedo is him bringing in all partes no puedo ayundenme in el audio dio not of than no hay salida to enable audio device

  • I accidentally deleted my desktop folder

    Well, I was trying to make space on my computer so I was deleting stuff when I accidentally deleted my folder on the desktop, is not in her recycle bin but I emptied before it, so now I realized everything in my office as all my icons and other thing

  • Quicken 2004 flushes heat upward, but do not open in XP Mode

    I try; Ted to install and run Quicken 2004 on Windows 7 pro in XP mode, but the program flashes upward, but does not open. This can be corrected? If so, what should I do?

  • What features of USB 3 G / 4G Windows RT supports.

    I have two other two clearly adapters USB 4 G (Motorola USBw 25100, 'Stick Atlas' Ubee PXU1960) and don't seem to be recognized by Windows RT. Adapters are available for work under RT? Is there some setting to allow adapters work. I had assumed that