Current line of Timeline component not selected.

version 12.1.2

I use the timeline component and try to read the values of the selected line in the bean support. According to the code in the bean always sends me the first line, no matter what scenario point I select. Any thoughts on what I am doing wrong.

Bc4 DCBindingContainer is BindingContext.getCurrent () .getCurrentBindingsEntry () (DCBindingContainer);.

DCIteratorBinding rowIter4 = bc4.findIteratorBinding("TimelineView1Iterator"); 

Line r4 = rowIter4.getCurrentRow ();      

System.out.println ("mg id:" + r4.getAttribute ("EmpId"));

Here is the XML of the calendar item:

< dvt:timeline id = 'tl1' startTime = "2013-04-08" endTime = "2014-03-08.

Summary =""styleClass = "AFStretchWidth"

elementpages = "single" itemPosition 'random' = >

< dvt:timelineSeries id = "ts1' var = 'TTE.

value = "#{bindings." View1.collectionModel} ">"

< dvt:timelineItem value = "#{evt.» RequestDate}"id ="ti1 '.

Group = "#{evt.» RequestDate} ">"

< af:panelGroupLayout id = "pg1" layout = "horizontal" >

< af:panelGroupLayout id = "pg2" layout = "vertical" >

< af:panelLabelAndMessage id = "plam22".

label = "Request Date" >

< af:outputText id = "ot24" value = "#{evt.» RequestDate}.

noWrap = "true" >

< af:convertDateTime pattern = "#{bindings." View1.hints.RequestDate.format}"/ >

< / af:outputText >

< / af:panelLabelAndMessage >

< af:panelLabelAndMessage id = "plam19".

label = "Emp Id" >

< af:outputText id = "ot21" value = "#{evt.» EmpId}.

noWrap = "true" >

< af:convertNumber groupingUsed = "false".

model = ' #{bindings. " View1.hints.EmpID.format}"/ >

< / af:outputText >

< / af:panelLabelAndMessage >

< af:panelLabelAndMessage id = "plam20" label = "Department Id" >

< af:outputText id = "ot22" value = "#{evt.» DeptId}.

noWrap = "true" / >

< / af:panelLabelAndMessage >

< af:panelLabelAndMessage id = "plam21" label = "Title" >

< af:outputText id = "ot23" value = "#{evt.» Title}. "

noWrap = "false" truncateAt = "0" / >

< / af:panelLabelAndMessage >

< af:panelLabelAndMessage label = "Create User" id = "plam23" >

< af:outputText value = "#{bindings." CreateId.inputValue}.

shortDesc = "#{bindings." CreateId.hints.tooltip}.

ID = "ot25" / >

< / af:panelLabelAndMessage >

< af:button id = "b14".

Icon = "#{Resource ['images: copy_ena.png']}" "

shortDesc = "create a copy of this record."

actionListener="#{backingBeanScope.SearchBean.getTimelineEmpId}"/ >

< / af:panelGroupLayout >

< / af:panelGroupLayout >

< f: facet name = "overviewItem" >

< dvt:marker id = fillColor "m1" = "#b5e7ff."

Shape = "diamond" / >

< / f: facet >

< / dvt:timelineItem >

< / dvt:timelineSeries >

< dvt:timeAxis id = "ta1" scale = "month" styleClass = "AFStretchWidth" / >

< dvt:timelineOverview id = "TE1" >

< dvt:timeAxis id = "ta2" scale = styleClass "years" = "AFStretchWidth" / >

< / dvt:timelineOverview >

< / dvt:timeline >

Would be very happy to comment.

Thank you.

Found the solution, the trick is first read the key from the selected line in the calendar, and then loops through the viewIterator to get the line for the selected key.

get the key of the selected row in the timeline

UITimelineSeries _series = selectionEvent.getComponent () .findComponent ("ts1") (UITimelineSeries);
RowKeySet _rowKeySet = _series.getSelectedRowKeys ();
Iterator itrSelectedRows = _rowKeySet.iterator ();

get the handle to the iterator underlying viewObject of chronology

Bc4 DCBindingContainer is BindingContext.getCurrent () .getCurrentBindingsEntry () (DCBindingContainer);.
DCIteratorBinding rowIter4 = bc4.findIteratorBinding("TimelineView1Iterator");

RowSetIterator rsiSelectedRows = rowIter4.getRowSetIterator ();
       
While (itrSelectedRows.hasNext ()) {}
Key = (Key) ((List) itrSelectedRows.next () .get (0);
Line empRow = rsiSelectedRows.getRow (key);
System.out.println (empRow.GetAttribute ("empId"));
}

Hope that someone else will save two days for themselves.

Thank you

Tags: Java

Similar Questions

  • Line Segment tool does not select the last line! Why? CC 2015

    I regularly draw several segments on the right with the line Segment tool, then convert them to a live paint. This often requires that lines are tangent or overlapping. In CC 2015 the last segment of the line remains active and the line segment tool switches to a tool "to rotate/move", by drawing a line tangent or closely placed impossible without '' if. '' How can I disable this 'new' and return to the line Segment tool I like in CS 5? Yes, I am trying to embrace the new, he does not cease of themselves in the way of productivity.

    You can not turn it off. Ask us for an option you can disable 'Keep selected', as you can for a brush.

    Feature requests are CC 2015 in the Help menu.

  • [SOLVED] Current line of flow losses - use different iterators

    Hello.

    I use JDeveloper 11.1.1.7.0 and I have this problem.

    I will try to explain the best I can, because I can not download images.

    I have a flow. The first view, named mainTable.jspx, has a table with the current data and new data button.

    Each row in the table has a setCurrentRowWithKey link to Edit the selected data. With this link, the current row is selected.

    • Link to modify the action is Edit stream, which navegates to editData.jspx
    • New data button action is new stream, which navegates to the create operation, then to editData.jspx with empty fields.

    The behavior of editData.jspx 's right, so there fields empty with the new stream or filled with fields with flow of change .

    EditData.jspx I have a custom button check with action. I'm doing some checking, so that if there is an error, I have an error with FacesContext.addMessage. This button makes no delete, Commit or Rollback operation.

    Well, my question is with the following steps:

    1. Go to mainTable.jspx
    2. Click the Edit link in a row
    3. Go to editData.jspx
    4. Click on the check button
    5. One check is not ok, then an error message is displayed. Now, this happens:
      • Deletes the current selection data, and the previous line of data in the table appears in editData.jspx
      • When I click the back button to return to the table of mainTable.jspx, the initial line selected in step 2 is not indicated in the table.
      • In the database, all the data exist, even data ghosts .

    I don't know what is happening. Is there no delete, Commit or Rollback operation in the issue button.

    How can I fix? Is there something I'm not directly into traffic?

    Any help would be much appreciated.

    Thank you

    * EDIT: well, as suggested by Timo, executeQuery lost current line.

    My problem is produced because a misuse of iterators.

    In some controls of my explanation, some steps get current line from an iterator and reuse the same iterator to get another set of lines by executeQuery, so the current line has been lost and it involved an inconsistent state.

    The solution is to create another different iterator, since the same point of view, but another iterator with a different name. Thus, the main iterator maintains the current line, and other additional operationes, queries, etc. are made by different iterator.

    It will be useful. Concerning

    Well, if you are using the same iterator to access different data, it is expected that the current line changes. The secone selection changes the current line. What you can do is to use a secondary set of lines to get to the other row or save the current line before select you the ranks, to make your checks and set the line current when you're done.

    Timo

  • Keep not selected (\) line Segment tool

    Hello, I use the latest version of Adobe Illustrator CC and can not start a new line with the line of a previous line segment tool.

    If I start again from one edge of the line point, move from my line from the line is still selected.

    In the previous version of Illustrator od the line was comic and disabled instantly what was allowing me to continue to draw the line on the edges of the first.

    Line Segment tool does not include the option 'Keep selected' as the pen or the brush so I can't enable or disable.

    someone has an answer how I could get this line automatically disabled after drawing it?

    Thank you

    If you choose: display > bounding box (Cmd Shift B (Mac) or Ctrl Shift B (Win)), you can continue shooting without moving the line just created.

  • Do not select the line concerned

    Hello

    I have a problem a few weeks ago, I was using Jdeveloper 11.1.1.4.0 and our server has WLS 10.3.4 and there has not been a problem
    Now server have 10.3.6 and I use 11.1.1.6.0 and I have a problem with the line incorect.

    When I select a line and you want to browse this line always I got the first row data in the list, which can be a problem?


    ID

    Edited by: 1D10T 26 September 2012 02:43

    Edited by: 1D10T October 4, 2012 01:56

    Edited by: 1D10T October 4, 2012 01:57

    do you mean like this, so that am switch to this version, you stumbled upon problem. are the benefits?

  • Component table removes leading not selected

    Hello

    I use JDev 11.1.1.4.

    I have a Table only after reading of a VO can be updated. Next to the table, I have a delete button that I drag-and-drop. by 'remove' operation. When I run this page, the data lines appear correctly and I can select a row at a fine time, but by clicking on the button Delete always removes the first line any line I selected.

    Is it possible to delete the selected line?

    Thank you very much in advance for your help.

    Bones Jones

    Did you ensure that the table is the selected line, the current line?
    Check you table for selection as a listener

    selectionListener="#{bindings.EmployeesView1.collectionModel.makeCurrent}" 
    

    Timo

  • How selectBooleanCheckbox can set the current line?

    Hello

    Using ADF Faces 10 g, I have an af:table component that is read-only, but the last column contains an af:selectBooleanCheckbox. This checkbox is used to 'activate' and 'disable' to each line. When I click on the box, I need the valueChangeListener be aware which line has been activated (so that I can then make some changes on this line to toggle). By clicking on the box to check must call setCurrentRow, or at least pass on values I can use later to set the current line manually.

    My first thought was setActionListener, but it seems that it may not be combined with af:selectBooleanCheckbox. I searched and found the following post:
    HOW to set an ID for the component from variable
    and after reading this I tried setPropertyListener, once again, I found that this is not a valid child of af: selectBooleanCheckbox. The post dry with nuansantio mentioning several times that setActionListener and setPropertyListener cannot be used, but there is no other comments on a solution.

    Any thoughts on how I can get this to work?

    Hello

    Could you elaborate more about

    I need to make a number of manual steps (invoking request Module) when the user selects / disables the check box

    You can pretty much add a method in your Impl VO (who did all the steps you want to do) and call the method in an expression for the value of groovy / call it in valueChangedListener of the box?

    Arun-

  • Current line always pointing First Row

    JDev 11.1.1.5.0 BPM

    I have a fileDownloadActionListener in a column of a table, have written the method to get the attribute of the current line.

    Unfortunately, it is still pointing to the first line of the table even though I select the download link of other lines that first line.

    Hello

    I had this problem in the past and found that the following parameters in the jspx (af:table) were not resolved:

    rowSelection = 'single '.

    selectionListener = "#{bindings." MyObjectView.collectionModel.makeCurrent}.

    Pls check your af:table attributes

    Marc

  • Clips added to timeline do not appear in the timeline

    Hello

    Can someone please guide me to solve this problem. I imported videos a recording on HD camcorder AVCHD in my files and folders. Then I opened these files in the Organizer first elements, makes them slide on the timeline. A pop up appears asking me if I want the clip videomerge because it has a sold background. The first clip I drag on the timeline appears in the timeline, but after that, the clips I did drag on the timeline does not appear on the secenline. It only extends the first clip in the timeline to make a big video (although in the timeline you will see them clearly). I can't work with transitions easily without being able to view Storyboard.

    In addition, the first clip made slide on the timeline always ends up on the video track 2, it does not do anything slip on the video 1 track.

    Only, I've installed this program it not so long ago and have not changed the default settings. All the tutorials I find online not dΘmarre in this way.

    You must choose the right AVCHD project preset to the start screen. New project, then select change settings and select the correct AVCHD presets project. If your audio is a sound 5.1 surround sound make sure to select AVCHD 5.1 audio project preset, if select stereo preset AVCHD project. If you select the wrong preset for your audio files, the audio will be placed on track 4 and won't present not in mode line scene. In this case, the only solution is to work in Timeline mode. You can right clcik on the empty tracks and choose to remove them to store the view of the timeline.

    In any case, to select the correct project preset should solve your problem.

  • Windows Live Mail always tells me I'm out of line, but I'm not.

    I continue to receive a pop-up window asking me if I would go online now, even if I'M online.  When I click on 'YES' (I want to go to the line), I just get the same pop window.  I can't use my Windows Live mailbox to send or receive e-mails.

    I tried the suggested Control Panel / uninstall a program / right click on Windows Live Essentials / select uninstall-change / clicked on repair all Windows Live programs.  End of "repair", he stated that all Windows Live programs had been repaired.  HOWEVER, the same problem exists when I try to open my Inbox mailbox.

    Open Internet Explorer, and then press Alt + F to open the file menu. If work offline is selected, deselect it. If it is not selected, select it, wait a few moments and then deselect. Now check if Windows Live Mail is still offline. If this is the case, repeat the cycle to select/deselect in IE until WLMail Gets the message.

    What version of Internet Explorer is installed? In Internet Explorer, press Alt - H has to do.

    You have Google Chrome installed?

  • Instantis 9.0 - be able to reschedule and update basic even to change basic Dates and Efforts to not selected activities

    In change system profile/role permissions for the project it, there is an option to allow a role to change the planned Dates and Efforts for activities.

    If that is not selected, a user cannot change the benchmark for Dates of the activity fields.

    However, it seems that the same user can perform that function reschedule and pick update planned and Baseline.  This changes the basic dates, even if the option is not selected.

    This work is designed?

    It seems that you should open an SR for this one.  I know that you can restrict who can update the base line, but I thought that this has also limited recalculation and updated in this way.

  • JavaScript help: get the current line inside tabular

    Hello world

    I hit a roadblock for a simple JS code: to get a current line for my tabular form. My environment is: Apex 4.2.6 on Oracle 11.2 with 3 Bootstrap for styling.

    The query in tabular form is as simple as this:

    Select

    "REF #"

    «INV #»

    "MANUFACTURER."

    "DISCOUNT."

    'PRICE ',.

    "UPC",

    "DESCRIPTION."

    quantity,

    "LINE NO.",.

    "" step by step

    of Order_items

    Now the emphasis here is "stepper", it is defined as "text save any State", in the expression of the HTML, I added this:

    < div class = "btn-group" >

    < button type = "button" class = "btn, btn - lg" onclick = "plusClicked ()" > + < / button >

    < button type = "button" class = "btn, btn - lg" onclick = "minusClicked (); ">-< / button >

    < / div > <!-/-> button

    The screen is as follows:

    Screen Shot 2015-02-06 at 9.44.49 AM.png

    In the header of the Page Javascript section:

    function plusClicked() {}

    var line, qty;

    Row = $(this). Closest ("TR");

    I tried row = $(this) .parent () .closest ("tr");

    same undefined result

    Qty = Row.Find ('input [Name = F09]'). Val();  F09 is the entry for the qty column name

    Alert ('most clicked qty =' + Qty);

    }

    The result is always: 'most clicked qty = undefined ".  Inspect the code says this:

    Screen Shot 2015-02-06 at 9.57.49 AM.png

    Any help and suggestions are greatly appreciated.

    The few I tested it seems solid to me.  I think you have to pass 'this' to plusClicked and minusClicked.

    onclick = "plusClicked (this)" "

    Then, the function can do:

    function plusClicked (btn) {}

    var line, qty;

    Row = $(BTN). Closest ("TR");

    Qty = Row.Find ('input [Name = F09]'). Val();  F09 is the entry for the qty column name

    Alert ('most clicked qty =' + Qty);

    }

    The other approach, I like it for it's with a DA.  I would like to add a class to the buttons instead of the onclick.

    DA would be during the click on jQuery selector .btnPlus

    and the JS to run would be:

    var $row = $(this.triggeringElement) .closest ("tr");

    var qty = $row.find('input[name=f09]').val ();

    Alert ('most clicked qty =' + Qty);

    I hope this helps.

    Thank you

    -Jorge

  • Add line before or after the selected line in af:Table

    Hello

    Please let me know how we can add a line before or after the selected line in the display: table.

    Currently I have a table with 2 buttons on toolbar. 1. Add 2. Add after.

    The user selects the row and click a button AddBefore and after... then, a blank line must have added in the table according to the clicked button.

    Please suggest me your entries.

    Thank you
    Kiran

    chk this
    http://mjabr.WordPress.com/2011/07/02/how-to-control-the-location-of-the-new-row-in-aftable/

  • selectoneradio gets not selected while filtering in grid...

    Hello

    Worm 11.1.1.3.0 JDev

    I use view based on entities and a transient variable with the String data type...

    I used this variable as a selectoneradio in the grid. I dragged this attribute as a selectoneradio in the grid, select the element contains values 'Y' and 'n'.

    I get the question on filtering, while filtering the selected values are gets not selected... I want that the values must be supported... (selected)

    How to do this? is there another way to do this...?

    give suggestions...


    Kind regards
    Gopinath J

    Published by: GOP on April 30, 2011 09:48

    If I understand you correctly, you have a update y VO a transitional attribute. You have created a with a filter and the table contains a column with a be changed based on the transient attribute.

    I suppose also that filter in the table is based on a criterion of display with a "database" execution mode (for example, on the criteria of "All the attributes that can be interrogated" by default). If this is the case, whenever you enter a condition in the filter and run the filter, a new database query is executed, lines of VO is rebuilt and you lose the values entered in the transient attribute. To avoid the recreation of the rowset (for example to prevent a new run of the DB query) you must base the filter of the table on one 'in memory' view of criteria rather than the default (which is a "database" one). If the criteria to filter display is an "in memory", a set of lines of the VO is not rebuilt, but all existing lines is filtered in memory and you won't lose the values entered in the interim until attribute.

    (There is a field called 'Query Mode' in the definition of display criteria dialog box, where you can select the run mode of the criteria - "Database", "In memory" or "Both".) Create the necessary conditions and select the "In memory" mode).

    Having in mind the fact that the criteria for marking as "in memory" will not filter the lines to the query of database (which will be executed at the start to load the set of lines), so all lines will be extracted, and then they will be filtered in memory. If this is not desired (for example because the number of all the lines is important), you can combine the filter with a panel of which limits the rows from the rowset, and then the filter will filter them in memory.

    Dimitar

  • Not selectable DataGrid row when using the custom itemRenderer

    I placed created an itemRenderer customized for use in a DataGrid in Flex 3.2, however, when I click in the cell in the grid using this itemRenderer, the line is not selected. (the DataGrid.selectable property is set to true).  Abolition of the use of the converter back the expected features. Here is my renderer object, is there any reason why I should expect this behaviour?  I have other itemRenderers not causing this, but their anatomy is the same... nothing manifestly different about them.

    Thank you

    Muaddib

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:HBox ' http://www.Adobe.com/2006/MXML "
    Width = '100% '.
    horizontalAlign = "center" >
    < mx:Script >
    <! [CDATA]
    public private static var millisInSec:int = 1000;
    public private static var millisInMin:int = 60 * millisInSec;
    public private static var millisInHour:int = 60 * millisInMin;
    public private static var millisInDays:int = 24 * millisInHour;
    public private static var unknownMsg:String = "UNKNOWN";

    public var _data: Data;
    private var _valueUpdated:Boolean = false;

    private void getFriendlyFormat(millis:Number):String {}

    ...

    formattedString return;
    }

    override public function set data(value:Object):void {}
    if(null == value)
    return;

    var newData: Data = value in the form of data;
    If (newData! = _data) {}
    _data = newData;
    _valueUpdated = true;
    }
    }

    override protected function commitProperties (): void {}
    {if (_valueUpdated)}
    var finalDate:Date = new Date();
    Update 'timeLabel"according to on_data
    _valueUpdated = false;
    }
    }
    []] >
    < / mx:Script >
    < mx:Label id = "timeLabel" / >
    < / mx:HBox >

    If you are not ' going to call super.data = value, you should probably have a get

    According to the data

Maybe you are looking for