Automatic line in the Table numbering format

I use the following code to the AutoNumber from the dynamic table lines:

this.rawValue = this.parent.parent.index +1;

but I want the numbers to appear with a time - like this 1. or 2.

How can I add this?

this.rawValue = this.parent.parent.index +1 + ".";

does not work

You may have too many parents

This.rawValue try: = this.parent.index + 1;

Tags: Adobe LiveCycle

Similar Questions

  • How to set the text in the last line of the table to be bold

    Hi all

    I have two tables in the report on my page and I would like to have the last line of the table as a "BOLD" text data.

    I found a jQuery selector to select the last row of the table, but I do not know how to implement it in the Apex. I want to control what table will have changed last row and who won't.
    $("tr:last").css({backgroundColor: 'yellow', fontWeight: 'bolder'});
    Could someone help me how to create a dynamic action to accomplish, or if y at - there another solution?

    My test app:

    user name: [email protected]
    passwd: kurintest
    appl: REPORT_APPL 12451

    Thanks in advance,

    Jiri

    Nico Martens wrote:

    PS: If you worry about sql plsql context switching, use a box instead of my function. Which probably could increase performance.

    Using this technique , analytics, and casewould be more effective and offer the best separation of concerns:

    Source report

    select
              product_id
            , sum(quantity_on_hand) qty
            , avg(quantity_on_hand) avg
            , case
                when   count(*) over ()
                     = row_number() over (order by product_id nulls last)
                then
                  'bold'
                else
                  'normal'
              end font_weight
    from
              oehr_inventories
    group by
              rollup(product_id)
    order by
              product_id nulls last
    

    HTML column expression

    #PRODUCT_ID#
    

    Avoid generating HTML in the query when it is possible that its impact on the ability to use the features of declarative report as column sorting and setting in the form. (See examples on page 3)

    If you have a table with 100 rows and you show only 15 lines. Do you want the 15th line "BOLD" or just line 100Le.

    It is really the important issue here. If the reports do not use paging and always show all lines, then it's trivial to implement using dynamic Action (as shown on page 2):
    H4. When

    Event: After refresh
    Selection type: jQuery Selector
    jQuery Selector: .report-standard

    H4. Real Action

    Action: Run the JavaScript Code
    Fire on loading the Page: Yes
    Code:

    $(".report-standard tr:last-child td").css({backgroundColor: 'yellow', fontWeight: 'bolder'});
    

    (Here is to use appropriate DA / jQuery selectors to make sure that only reports including totals get this formatting applied...)

    For more complex presentations, a report of custom line model is the way forward, as in the link in the previous thread of the OP: + {: identifier of the thread = 2436912} +.

    Also note that the columns hidden, based on the GROUP_ID/GROUPING/GROUPING_ID functions are very useful in these reports. They can be used to report conditions of line to avoid the additional conditions to be ready in the query (as in the case above) and provide the break several levels of formatting.

  • Added new line in the table

    Hello

    I have a table inside a panelCollection. When I press the button Add a new row (plu green) the empty line newly added appears in a random place in the table, but I want to appear as the first line of the table (top of the table). How I do that?

    Thank you very much
    Will do

    Will do,

    It is a weird behavior that was introduced in JDev 11.1.1.4. We fixed this in the next version by adding the new line always above the current line.

    You can do two things:
    -Make sure that the size of the range of the iterator binding is greater than the number of rows displayed, in this case the new line will be created directly below the current line
    -extend the JHeadstart TableBean class, override the createNewRow method and create a line in the first line

    Steven Davelaar,
    Jheadstart team.

  • Toggle buttons control according to the selected line in the table?

    Hello

    I have used JDev 11.1.1.2.0

    On my main page, it has a query section and view the result to a component of the lookup table and also has functioning as (update/deletion) buttons in the toolbar.

    I want to toggle buttons operating according to some value of the selected line in the table, and I searched on the OTN forum, found more than issues like that, but seemed no found a good solution.

    The table is a unique and has a status column selection, its data type is integer, and I want to activate the buttons when the value of the status field of the selected line is 0 or 1, disable the buttons when the State value is other values.

    Code of the table as:

    < af:table value = "#{bindings." Var VO1.collectionModel}"="row ".
    lines = ' #{bindings. " VO1.rangeSize}.
    emptyText = "#{bindingsVO1.viewable?" '} ". No data to display. ': 'Access Denied. »} »
    fetchSize = "#{bindings." VO1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." VOCriteriaQuery.queryDescriptor}.
    queryListener = ' #{bindings. " VOCriteriaQuery.processQuery}.
    filterVisible = "true" varStatus = "vs."
    selectedRowKeys = ' #{bindings. " VO1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." VO1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "resId1" >

    Operation code buttons like:
    < af:commandToolbarButton text = "Update" id = "ctb2" action = "editDAF" / >

    Any suggestions would be very helpful.

    Thank you
    zeroxin

    Hello

    bind to the attribute in the PageDef file for the status field. Then configure the PartialTriggers property button to point to the ID of the table. Of the disabled button property then points to the status as attribute link

    #{bindings.statusField.inputValue == 'value'}

    Frank

  • Add lines to the table of results

    Hi all

    A table of results page updated, I have one called submitButton 'Add' to add rows at the bottom of the table to create a new record.
    Wrote a method create in AM, but it's always add a new line to the second last position.

    How to add a new line to the table after the last record?


    Thank you and best regards,
    Patricia

    In your method of AM

    You can use following code in AM

    VORowImpl row = (VORowImpl)vo.last();
    vo.setCurrentRow(row);
    vo.next();
    VORowImpl newrow = (VORowImpl)vo.createRow();
    vo.insertRow(newrow);
    

    I hope that helps!

    Thank you
    AJ

  • Add the line in the table of the ADF

    I am trying to add a new line to the table of the ADF. Here are my steps:
    1 create new entities to tables (new-> EJB-> entities from Tables)
    2. create the Session Bean (new->-> Session Bean EJB) with all required methods for earlier of the entity created
    3 create the control of data off of it (right click-> session bean create a Data control)-, it creates 'testFindAll '.
    4. After these steps, I drag / drop my "testFindAll" of data controls to form and create the table
    5. now I do drag & drop operation Create since my 'testFindAll-> operations", create a button and move the action to create CreateInsert

    And now, eating disorders: ((...)) When I click on the button to add the new line I get null pointer exception. Here is the part of the trace:

    java.lang.NullPointerException
    at oracle.adf.model.adapter.bean.UpdatableBeanDataControl.createRowData(UpdatableBeanDataControl.java:137)
    at oracle.adf.model.bean.DCBeanDataControl.createRowData(DCBeanDataControl.java:642)
    at oracle.adf.model.bean.DCDataVO.doCreateData(DCDataVO.java:870)
    at oracle.adf.model.bean.DCDataRow.create(DCDataRow.java:306)
    at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:432)
    at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4679)
    at oracle.adf.model.bean.DCDataVO.createInstance(DCDataVO.java:567)
    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1818)
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2211)
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2257)
    at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2233)
    at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:9404)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1223)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
    at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:464)
    at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:217)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    ...


    I know I can do it if you create ViewObject rather than Tables and SessionBean entities. But I need this approach.

    Thank you very much!

    Hi Goran,

    What is your version of JDev? You try with EJB 3.0 or 2.1? I just tried (with 3.0) and it works fine (tested in JDev 11.1.1.2.0).

    Here's my pagedef

    
    

    Infact, I don't have to change the action of creation at CreateInsert. By default, it is CreateInsert only.

    Arun-

  • Automatic line of the dynamic table numbers

    Hi, with your help I've almost finished my table. My table has 18 rows and there add line btn. Is it possible automate so that when I add lines they will have numbers of numbering of the lines automatically. I tried the indexing, but it does not work.

    this.rawValue = this.parent.index

    I am trying to improve also a calculation script and for some reason I get and error. Will you be able to let me know what is wrong. My script is:

    Form1. SubTable.Table2.Row1 [0]. Total::calculate - (FormCalc, client)
    If (AmountNet > 0) then
    Total = AmountNet + VAT

    else (AmountNet == 0) and (rate > 0)
    Total = AmountForeign /ExchangeRate
    endif

    I checked with the check script syntax and it's ok, but I still get an error.

    I have attached a picture of what I get a a final doc.

    Thanks a lot for your help!

    Hello

    Looking at the form once again, I think that's what you're after:

    if(AmountNet > 0) then
    $ = AmountNet + VAT
    else if ((AmountNet is null or AmountNet == 0) and rate of change > 0) then
    $ = AmountForeign / exchange rate
    endif

    In the previous version, the test was "when AmountNet == 0; However this does not check if the field was empty. The code above in red AmountNet checks two conditions: If the field is empty OR if the user has put in £0.00. If one of them is true, then the first part of the test is satisfied. The script moves to focus on the value of the ExchangeRate separately.

    Hope that helps,

    Niall

  • 'Lines' of the table does not automatically extend as added content?

    This is a table of Storyboard, built with a simple table.  Three columns: one for the images, one as a spacer, a text.

    I did the storyboard to the origin in the Pages, and then converted in Word to work with a partner, now converted to Pages yet.  It seems to be OK except for one thing:

    Before, when I would write in the text of the text column... the line would extend automatically as the text was written, at least in the size of a page.

    Now, I think lines are somehow "locked" and does not (at least one page), extend this text and images, are "hiding" because the line is not normally develop as she would have.

    Is there some click preferably a place that keeps my lines to a constant size, any content is in every cell?

    Or maybe it's a corruption caused by going to Word and back?

    All ears,

    Ben

    V4.3 Pages ' 09, or permit Pages v5.6.2 splitting a line beyond the limits of the page, so limit the content of text in a cell a to a single page. I just copy and paste a page full of text and he dropped in the first row, cell 3. It is automatically extended to the bottom of the page and not details. There is no hidden settings in Pages that will be substituted for this limitation.

  • Not all cells in the table is formatted but just the first.

    var doc = app.activeDocument,

    _pages = doc.pages, i, j, k, l.

    _textframes, _tables _row, _cell, rownum;

    for (i = 0; i < _pages.length; i ++) {}

    _tables = _pages.item (i). Tables;

    for (j = 0; j < _tables.length; j ++) {}

    _Row = _tables.item (i) Rows;

    rowlen = _row.length;

    for (k = 0; k < _row.length; k ++) {}

    _cell = _row.item (i) .cells.

    for (l = 0; l < _cell.length; l ++) {}

    _cell. Item (i) .appliedCellStyle = "CellA ';

    _cell. Item (i).paragraphs.everyItem () .appliedParagraphStyle = 'ParA ';

    }

    }

    }

    }

    Hi, I'm stuck in this code. I want to format all the cells of the table, but using the code above only the first cell of the first row is updated with the format. The other problem is that, in all the lines, it is a cell unique couting. "CellA" and 'ParA' is the cell styles and paragraph styles I made in my pc. I'm relatively new to indesign scripting and try to learn something new.

    Hello

    1. There is no property, '.table' for 'page' pages.item (i) .tables returns error;

    2 Javascript is case sensitive so watch start a property with a small letter names ("Tables" are false);

    3. There is no need to browse the pages, tables, lines and cells - just use . everyItem().

    so

    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().appliedCellStyle = "CellA";
    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().appliedParagraphStyle = "ParA";
    

    should work.

    Jarek

  • Need help on repeat lines of the table and the subform

    I hope someone can help me find a way to accomplish things with a subform of repeating table in a form I'm building.  I have attached the file here.

    https://workspaces.Acrobat.com/?d=2nUNZuTf2T4tsdSykMTlXw

    I have a table (AssessChart1Table) set up on pg 7 (analysis) and built in buttons (AddRowAssesChart1 and DeleteRowAssesChart1) so that the user can add or remove rows of additional data according to the needs.

    The problem is that the user enters also cross the line header (AssessChart1HeaderRow1) in this data table.  There are 10 available columns; However, they will have to add more data than that. Therefore, I made a button (AddMoreCourses) for the user to click on to add another instance of the subform table (AssessEvalChart1) and also to cancel adding the subform with this button (UndoAddMoreCourses).

    In addition, I setup that whatever data the user enters in the cell of this table cell (Prog-DeptObjChart1) are automatically transferred to another table (AssessChart2Table), cell (Prog-DeptObjChart2), which is located on the next page (AnalysisCont1).

    All above works very well except that whenever the user presses the button (AddMoreCourses) I don't want it to automatically fill cells of text field that are copied from (AssesChart1HeaderRow3) because I need the user to be able to enter different values rather than add more columns to fit their data.  In addition, I would like that the values of the cells in the left column to repeat well because these values will not change. Currently the values of the cells in the left column that wear down (AssessChart2Table) to get stripped on (AssessChart2Table) whenever I the user pushes button Add more courses or cancel add more courses.

    In summary, the tables would look like the attached screenshots:

    Analysis_-_Assement_Chart_1.png:Analysis_-_Assess_Chart_2.png

    Any help would be highly appreciated.  I'm not experienced with Livecycle Designer.  The form I built by reading the forums and the examples.

    Where you need it, I use Livecycle Designer v. 9.0.0.2.20120627.2.874785 on a Windows 7 Pro platform.

    Thank you!

    They will need to copy in a similar way as with the other lines. I would say on the exit event for the field of Prog-DeptObjChart1, add the code that copies the rawValue of him in the second table. Your code has something there now, but it does take into account that there will be multiple instances of the same line.

    Thus, in the constructor of your action, add another result to the condition of AddRowAssessChart1.click: Add a new instance of AssessChart2Row1.

    Then exit to Prog-DeptObjChart1 in the event, add this code.

    xfa.resolveNode ("AnalysisCont1.AssessEvalChart2.AssessChart2Table.AssessChart2Row1 [" + this. "]") parent.index +"]. Prog-DeptObjChart2") .rawValue = this.rawValue;

    Now when you exit the field you typed in, the text is copied in paragraph2.

  • How to determine a specific line in the table clicked on

    Hello-

    I need to determine the specific line of a table control that is right-mouse-clicking.  I think that this is possible by using the context Menu Activation? event for the control of the table and get the vertical coordinate in the Coords filter options.

    He is performing experiments to determine the vertical amplitude of each row in the table, or maybe in determining the width of a line and using a linear relationship to determine the possible range of the following lines.  Do you feel it is the best strategy or is it maybe an another easier way to get this information?

    Thank you

    Don

    You can use the CtlRef with the Point in the array to the method line for the information.

    Ben64

    I was too slow to respond...

  • How to upgrade a selection one line of the table based on values in another table when there is exactly one matching entry and negligence if there is more than a football game

    Hello

    I'm trying to achieve the following objectives:

    1. in table A, select rows based on the values in column 2. something like SELECT * FROM TABLE A WHERE (COLUMN2 = 'X' or Column2 IS NULL)

    2 and these values selected, I want to update Column3 from Table A if TableA.column1 = TableB.column1, but only if there is exactly one game. If there are multiple matches, column 3 of the table article updated.

    That's what I've tried so far.

    UPDATE TABLE_A

    SET

    TABLE_A.COLUMN3 = (SELECT COLUMN3 OF TABLE_B

    WHERE ((TABLE_B.COLUMN1 = TABLE_A.COLUMN1) AND ( TABLE_B.COLUMN1 IN (SELECT Column1 FROM TABLE_B GROUP BY COLUMN1 , HAVING COUNT (*) = 1)))

    WHERE EXISTS (SELECT * FROM TABLE_A)

    WHERE ((TABLE_A.COLUMN2 = 'X' OU TABLE_A.COLUMN2 = 'Y') AND (TABLE_A.COLUMN4 IS NULL OR TABLE_A.COLUMN4 = ' ')));

    More details on my DB environment:

    Version Info:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    Toad, but, depending on whether the query updated all lines. I would really appreciate if someone could tell me how to fix my request.

    Thanks in advance.

    Exists it predicate in the block of update will be set to true if there is at least one row in table_a where column2 is X or Y and column4 is null or a space. You need to correlate exists it with the outer query query (I'm guessing on column1) to get the result I think you want.  However, who would update all rows in table_a who meets the criteria, there is a corresponding row in table_b, affecting Column3 lines form null not matched or not.  (Again), I'm guessing that's not your intention.  If you only want to update the lines in table_a which have a corresponding line in table_b and meet the other predicate, then I think you want something more like:

    Update table_a

    Set table_a.column3 = (select column3 of table_b

    where table_b.column1 = table_a.column1 and

    Table_B.Column1 in (select column1 from table_b

    Group by column1, having count (*) = 1))

    where ((table_a.column2 = 'X' ou))

    table_a.Column2 = 'Y') and

    (table_a.column4 is null or)

    table_a.column4 = ' ')) and

    table_a.Column1 in (select column1 from table_b

    Group by column1, having count (*) = 1)

    John

  • Selected color change of line to the table in the ADF

    Hi all

    I'm new to ADF. I use Jdeveloper 11.1.2.4 version.

    My requirement is when I chose several lines, color of the line should be changed to red.

    I dragged and dropped ViewObject of the Department in the form of a table on a page and RowSelection to the multiple. I need color of selected lines/lines to be past to red. How can achieve us?

    I wrote the method selectionListner on the table, in which I get the details of the selected line. How can we apply color to selected lines.

    Thanks in advance.

    Best regards

    Claude Reynier.

    How about you create a variable temporary level VO with a default null value.

    Now on the selection listener retrieves the current line and change the value of this variable 'Y '.

    In the inlineStyle write an EL, if the value of this variable is 'Y' changes the color.

    Thank you

  • ContextMenu on the line of the Table and ContextMenu on a table column

    jdev12.1.3

    I am able to use < f: facet = 'contextMenu' name > with af:table right-click on a table row to display the menu.

    I am also able to use < af:showPopupBehavior popupId = "p2" triggerType = "contextMenu" / > on af:column right-click on the column to display the menu.

    But when I have both on, do a right click on a row and column do not work.

    My question is: is it possible to have do a right-click on the column and right-click on the line on the same table?

    Thank you.

    I'm sorry. I meant the context menu on the text in the table cell.

    I managed to make it work.

    Here's what I did:

    ...

    ... ...

    .....

    ...

  • missing parenthesis in insertion into separate lines select the table from the other table

    Hello

    could you help me with the following question?

    I have the following tables

    CREATE TABLE table1)

    ID varchar (12),

    col2 varchar (10),

    COL3 varchar (10),

    level varchar (10))

    CREATE TABLE table2)

    Id2 varchar (12)

    A varchar (10),

    B number (1)

    CONSTRAINT PRIMARY KEY PK (ID2, is));

    INSERT INTO table2 (ID2, A, B) SELECT ID, col2

    MAX (CASE WHEN level = "level 1" then 1

    level = 'level 2' then 2

    Level = 3 then 'niveau3') as colIN3)

    FROM table1 GROUP BY ID2, a.;

    the first table have duplicates as follows:

    Id2 COL2 COL3 level

    A1 pepe football level1

    A1 pepe football level2

    A1 pepe football level1

    A1 pepe basket level2

    A1 pepe pingpong level3

    the output should be selected with unique key (ID2, col3) lines and the level must be the greatest.

    Id2 COL2 COL3 level

    A1 pepe football level2

    A1 pepe basket level2

    A1 pepe pingpong level3

    The output of the script tells me the following messages:

    -lack of right parenthesis referring to the max function.

    Thanks adavance.

    Kind regards

    Hello

    Remember the ABC's of the GROUP BY:

    When you use a GROUP BY clause or in an aggregate function, then all in the SELECT clause must be:

    (A) a ggregate function,

    (B) one of the expressions "group By."

    (C) adding to C, or

    (D) something that Depends on the foregoing.  (For example, if you "GROUP BY TRUNC (dt)", you can SELECT "TO_CHAR (TRUNC (dt), 'Mon - DD')").

    To ask him, there are 5 columns in the SELECT clause.  The last one is a function MAX (...); It is an aggregate, is not serious.

    The first 2 columns are also named in the GROUP BY clause, so that they are well.

    The other 2 columns, country and internal_Id do not match any of the above categories.  These 2 columns cause the error.

    There are many ways to avoid this error, each producing different results.  You could

    • remove these 2 columns in the SELECT clause
    • Add these 2 columns in the GROUP BY clause
    • use the aggregation such as MIN, 2-column functions
    • remove the country from the SELECT clause and add internal_id to the GROUP BY clause
    • remove the internal_id from the SELECT clause, and add countries to the GROUP BY clause
    • ...

    What are the results you want?

    Whenever you have a question, please post a small example of data (CREATE TABLE and INSERT statements) for all the tables involved, so people who want to help you can recreate the problem and test their ideas.  Also post the results you want from this data, as well as an explanation of how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

Maybe you are looking for

  • DNS settings for the intranet server is not not a DNS

    I have an OS X server that services the on the local subnet (behind a NAT).  We have moved to a new office and installed a new firewall / local DNS and all other machines can resolve names of local computer.  But the OS X Server solves only them to t

  • Parts of Firefox 21.0 under Windows XP SP3 blackout curtains

    I upgraded to v. 21.0 and I noticed that sometimes (more often recently) parts of the browser interface is just off. If I move the mouse to the blank parts, some of them reappear, but some will not. Refresh the browser (close and open again) sometime

  • Compatibility of SSDS on IdeaPad laptops

    Hello There are a few posts on the SSD, but none that has answered my question and proposed general guidelines. That is why this thread. 1.) How determine if their laptop model is compatible with a particular SSD? 2.) I have an Ideapad y560p and I wa

  • VBAI 2012 "save the image calibrated to the file" issue

    Hello Under the State of 'Calibrate Image', 'Save the image calibrated to the file' option does not work correctly. With the exception of the type 'Point of Distance' of the calibration, the new image is ever recorded. I checked the calibration image

  • Rundll32 is not found, but it is in the right folder

    I can't access most of the files/programs in my control panel.  the error message says "application not found c;\windows\system32\rundll32.exe.  A search on drive C indicates that the program exists in the right folder. How can I solve this problem?