Inline Editing in TreeView with ContextMenu
I*d like to add items to an editable TreeView using a ContextMenu.
Here is what I tried so far (JavaFX 8 Build b102):
package treeview.tests;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeView;
import javafx.scene.control.cell.TextFieldTreeCell;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;
public class EditableTreeView extends Application
private final Image documentIcon = new Image(getClass().getResourceAsStream("document.png"));
private final Image chapterIcon = new Image(getClass().getResourceAsStream("chapter.png"));
private final Image sectionIcon = new Image(getClass().getResourceAsStream("section.png"));
class Document extends TreeItem<String>
Document(String string)
super(string, new ImageView(documentIcon));
class Chapter extends TreeItem<String>
Chapter(String string)
super(string, new ImageView(chapterIcon));
class Section extends TreeItem<String>
Section(String string)
super(string, new ImageView(sectionIcon));
@Override
public void start(Stage stage) throws Exception
TreeItem<String> root = new Document("Document A");
root.setExpanded(true);
final TreeView<String> treeView = new TreeView<>(root);
for (int i = 1; i <= 3; i++)
Chapter chapter = new Chapter("Chapter " + i);
root.getChildren().add(chapter);
for (int j = 1; j <= 3; j++)
Section section = new Section("Section " + j);
chapter.getChildren().add(section);
treeView.setEditable(true);
treeView.setCellFactory(TextFieldTreeCell.forTreeView());
MenuItem addMenuItem = new MenuItem("Add Child");
addMenuItem.setOnAction(new EventHandler<ActionEvent>()
public void handle(ActionEvent e)
TreeItem<String> parent = treeView.getSelectionModel().getSelectedItem();
parent.setExpanded(true);
TreeItem<String> child = null;
if (parent instanceof Document)
child = new Chapter("<Chapter>");
if (parent instanceof Chapter)
child = new Section("<Section>");
if (child != null)
parent.getChildren().add(child);
treeView.requestFocus();
treeView.getFocusModel().focus(treeView.getRow(child));
treeView.edit(child);
treeView.getSelectionModel().select(child);
ContextMenu contextMenu = new ContextMenu();
contextMenu.getItems().add(addMenuItem);
treeView.setContextMenu(contextMenu);
Scene scene = new Scene(treeView, 600, 400);
stage.setScene(scene);
stage.setTitle("Editable TreeView");
stage.show();
public static void main(String[] args)
launch(args);
Everything is working as expected except the inline editing is not activated
after calling treeView.edit(child) in the EventHandler of MenuItem("Add Child").
So how can I implement a custom TreeCell<T> to enable inline editing of tree items in the ContextMenu?
Thanks in advance.
Hi,
It is by design that groups are collapsed when entering or leaving inline edit mode on a custom list that uses group by, inline editing, and has groups collapsed by default.
There is no hotfix currently,
our product group is aware of the issue and they are currently investigating the issue.
The current workarounds for this issue are 1) to have groups expanded by default, or 2) to re-expand the
group each time the inline
editing mode is changed.
Xue-mei Chang
TechNet Community Support
Similar Messages
-
Hi
It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
OK.
Let me explain by example:
MileStones List - Having more than 20 items
Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
on first record!
The wierd thing is that if the MileStone list has less than 20 items all works as expected.
Any pointers will be appreciated
ThanksHi,
This is a known limitation when working with complex fields like Lookup field.
A workaround is that we can avoid using the inline edit feature when there are
complex fields in a list.
You can take a look at this KB from Microsoft Support to get more details:
http://support.microsoft.com/kb/2600186/en-us
A similar thread for your reference:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
Thanks
Patrick Liang
TechNet Community Support -
Document collaboration with inline editing activity
We have some strange behavior in our doc collaboration w/ inline editing activity type. Activity sets up fine and when a new instance is created it appears to start ok but when you click [edit] a network logon prompt comes up. The users Agile username and password is required. File then opens after an Excel VBA error message box is shown with no error description (and file does not have any VBA). You can then edit the file but when you try to save it you get a "document not saved" error message. Once cleared and the file closed you can open the attachment using [edit] and the changes were actually saved. Once moved to the next step in the workflow the new user who tries to edit the file sees the same issues. We cannot see a reason why the application is behaving this way. Agile 5.2.2 office 2007. thx
It should be documented in the Installation or Configuration guide. I don't have the 5.2 docs so I'm not certain. If you don't have it, Oracle Support should be able to help you out.
-
Bug editing list Items using webpart connections ,group by and inline editing
Hi Everyone. I came across a bug using out of the box features.
Let me explain well the details to reproduce the error. I used :
*2 Lists :
-List one : the consumer list with two columns :
-Number column
-Choice column
-List two :
The sender list with one column :
-Lookup column to gets the number column on the consumer list
*A webpart Page
*2 listviewwebparts in the webpart page
*Connect webparts to filter by the lookup column/number column
*Add inline editing in the consumer webpart
Till now everything works perfectly, inline editing works fine. Let's add some more view details :
*Add a group by in the view of the consumer webpart (group by the choice column)
=> Try to edit list items, you will notice that inside a group, inline editing is OK and inside another group it doesnt work!
If you get the same error, that would be nice to find where is the problem (I already found a similar bug and the problem was the sorting that needs to be in the same way for both connected webparts , ASC or DESC). But this one... ???Hi Static,
According to your description, I create the consumer list and sender list, create a webpart page , add a chioce filter webpart and consumer list webpart. But after I add a group by in the view of the consumer webpart, the inline edit still work fine.
You can have a look at the blog:
https://support.office.com/en-ca/article/Connect-a-Filter-Web-Part-to-a-List-View-Web-Part-4f3f6c10-0a1b-479d-8b4d-c4f1bf49bb3f#bms3
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Eric Tao
TechNet Community Support -
Javascript to do inline edits on web applet reports
This would be a weired idea, i created a web applet report for some users of mine. I gave them a link that will take them to the particular record, now they were wondering if they could do an inline edit - which i flatly refused.
I was wondering if any of you have done it with some javascript functionalities.smjohn,
Mike Lairsons book Oracle CRM On Demand Reporting has a way to create edit links that open the record in edit mode, this might help you.
cheers
Alex -
Hi all,
I made the Java tutorial treeView in Webdynpro with any problems.
Now, I used the "BAPI_USER_GETLIST" to list users in my treeview with a userList Model.
When I click on a user Node I want to add child node with the user details information
getting by the "BAPI_USER_GETDETAIL".
In the Event OnAction of the TreeNodeType, when I execute my BAPI_USER_GETDETAIL with username as
input parameter
how can I add dynamically child nodes with the output values from "BAPI_USER_GETDETAIL" ?
Thanks in advance,
MathieuThanks Armin,
I have solved my problem.
my Context looks like :
-BAPI_User_GetDetail_Input = ModelNode
-BAPI_User_GetList_Input = ModelNode
-TreeNode = ValueNode
--Child = Recursion Node
--Icon = Value Attribute
--Text = value Atrribute
In the wdDoInit method of my Controller, I have this code :
public void wdDoInit()
//@@begin wdDoInit()
// Execute BAPI Call
try
Bapi_User_Getlist_Input inp = new Bapi_User_Getlist_Input();
wdContext.nodeBAPI_User_GetList_Input().bind(inp);
wdContext
.currentBAPI_User_GetList_InputElement()
.modelObject()
.execute();
catch (Exception e)
wdComponentAPI.getMessageManager().reportException(
"Exception " + e,
true);
// creating a topLevel Element (UserElement)
IPublicUserController.ITreeNodeElement level1element;
// for all users, add them tho root node and do query to get theyr roles
int size = wdContext.nodeUserlist().size();
wdContext.nodeUserlist().moveFirst();
for (int i = 0; i < size; i++)
// current user, name of the node
String username = wdContext.currentUserlistElement().getUsername();
// set infos and add to the tree
level1element = wdContext.createTreeNodeElement();
level1element.setText(username);
level1element.setIcon("user.gif");
wdContext.nodeTreeNode().addElement(level1element);
// Making BAPI call for details
wdThis.ExecuteBAPIUserDetail(username);
// for all Elements from BAPI call, add them to tree
int size2 = wdContext.nodeActivitygroups().size();
// moving to first Element
wdContext.nodeOutputDetail().moveFirst();
for (int j = 0; j < size2; j++)
String rolename =
wdContext
.nodeActivitygroups()
.currentActivitygroupsElement()
.getAgr_Name();
// add to the tree
IPrivateUserController.ITreeNodeElement level2element =
level1element.nodeChild().createTreeNodeElement();
level2element.setText(rolename);
level2element.setIcon("role.gif");
level1element.nodeChild().addElement(level2element);
// next element
wdContext.nodeActivitygroups().moveNext();
// moving to the next user
wdContext.nodeUserlist().moveNext();
//@@end
Message was edited by: Armin Reichert
(Added code tag) -
Inline edit of Oracle UCM content in weblogic portal
Hi,
I am using weblogic portal with oracle UCM repository.I just want to edit UCM content inline in porlet.
Can any body please suggest on same?What version of Site Studio are you using?
If you are using the 10gr4 version, you should take a look at the external services added to call a placeholder and retriieve both the formated HTML and the inline edit capabilities .
http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_sod.pdf
Regards,
Juan -
How to make a "yes/no" field to be displayed as a checkbox during inline editing?
I have a "yes/no" field in a SharePoint 2013 list. In a default list view I can click "edit" link and get to inline editing of the list. In this case I can edit the "yes/no" field via a dropdown with values "yes" and
"no". Like so:
But in my solution I have lots of records that must be clicked through by users as quickly as possible. And a checkbox is more convenient for this, but not a dropdown.
So is there any way (with and without custom development) to display a checkbox instead of a dropdown in inline editing mode? Like so,
vHi,
From your description, you want to make a “yes/no” field to be displayed as a checkbox in “Quick Edit” mode in SharePoint 2013.
We can use code
to achieve it.
Here is a blog for your reference:
http://sharepoint-community.net/profiles/blogs/custom-field-type-for-sharepoint-2013-custom-quick-edit-mode
More information:
http://spjsblog.com/2011/02/08/inline-editing-for-sharepoint-2007/
Best Regards,
Dennis Guo
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
See http://www.yvoschaap.com/index.php/weblog/ajax_inline_instant_update_text_20
Example page at http://www.yvoschaap.com/instantedit/
Now this is the sort of thing that the Apex Application Builder needs badly.
WYSIWYG page and layout changes. I can see tons of uses for it.
1. Region Titles - Just change the title right on the page instead of going to the Region Definition page
2. Column Headings - Just edit column headings inline on the report region rather than the tedious, Edit Page, Report Attributes, Column Attributes, Apply/Next, rinse, lather, repeat!
3. Item labels - Change item labels with inline edits
The list goes on.
Basically, this would make the App Builder GUI more like a "rich" desktop application rather than a clunky traditional page-refresh based web application.
Hopefully the Apex team is already on top of all this and is already planning to add nifty features like these (and more!) to Apex 3.0
ThanksGood call. I will play around with that.
I was kinda (well, more than kinda) hoping it could be as simply a checkbox or a new section of the Item Properties of the Application Builder where we say something like "Inline Editing Functionality".
We can always hope it will be in release 4 or 5. -
Outlook Reading Pane Inline Editing?
Is it possible to allow inline editing of items being viewed in the reading pane, like an Outlook task?
Here is some background:
One of my clients uses OneNote for task lists, which works ok to a point. I've never liked how there is no archive of completed tasks and they currently make a note tab called "completed" and manually move checked items there from time
to time. But the big problem is the Notebook is shared over the network between 5 employees and some of the Section files are over 8MB and when viewing and editing these sections its very slow. So I want to try and migrate them to use Outlook Tasks for there
"to do" list, which is hard since OneNote is so simple and fast. But Outlook will be able to handle archiving completed tasks and keep the system fast.
I've created some custom Task views to make the task list nice and simple. One thing i don't like and I know the client won't is having to open a window to view & edit the task. Enabling the "Reading pane" on the right of the task list solves half this
problem, but it would be nice if one could edit the task text contents in the reading pane.
I've looked all through Outlook trying to find a setting and can't find one. So i'm wondering if this is possible? If not maybe is there a way to have opened tasks open in a pane rather than a new window when you double click them?I agree with you - editing of tasks in the reading pane would be very productive and help with the management of tasks.
However given that 'in-pane editing' of emails was a new feature only in 2013, I gather that we'll be waiting for a future update before this will be made available.
Any updates that can be shared on this? -
How can I edit multiple clips with different frame rates on the same timeline
how can I edit multiple clips with different frame rates on the same timeline
You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
Have fun.
x -
I Have a Mac 10.9.5 I have Photoshop CS 5.. Also have Photoshop CC. As of last month was able to edit any image with either program,as of today I can't edit images in either program. I can't see and editing I've done ,but when close the image both program ask (do you want to save changes) I look at the image I don't see any changes to save. Please help Thanks for time in advance
Please describe the steps involved in the issue exactly (with screenshots maybe).
What have you done for trouble-shooting so far?
http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html -
Apex 2.2.1- error in editing a report withIE 6: ORA-20001- Checksum error
Hi all,
I'am getting an Error when I try to edit a report with Internet Explorer 6: ORA-20001-...- Checksum error.
With Firefox it works fine.
Customer is using IE as standard browser and Firefox is not available here.
Any Ideas?
KazimI had to apply Patch 4554072, provided with APEX.
This patch is available in the directory patch\bug4554072.
Kazim -
I installed adobe digital editions but when I want to authorize a device (an e-reader) it doesn't work, I receive an error message that digital editions cannot connect with the activation server. what can I do?
Please quote the exact error message, word-for-word, verbatim.
What is your operating system?
What version of Lightroom? -
I can see from searching online that this is a regular question but I have not yet seen a solution.
I am running Lightroom 5.4 and Photoshop CC 14.2.1, both kept updated via the monthly subscription, on a 2013 MacMini running OSX 10.9.3
Starting with jpg's:
If I try "Edit a copy with Lightroom Adjustements" - Photoshop opens but no photo displayed in PS
If "Edit a Copy" or "Edit Original" then Photoshop displayes the file OK
If I am using Canon Raw files (.CR2) from my Canon 70D, then AS EXPECTED Lightroom starts Photoshop with the intervening dialog box about opening a copy or original but again just a blank screen and no photo displayed.
Has anybody found a solution yet?
Thanks in advanceHi Victoria,
I dont have 3.6. but I installed lightroom 4 and the function worked fine. But i didnt like the version 4, as it consumes a lot of resources.
I can open raw files without any problem.
And this function had been working before and suddenly this stopped working. I didnt do any setttings changes even.
Really appreciate your help on this.
Maybe you are looking for
-
Dear all, what are the steps are involved to activate excise capture and posting at T Code : MIGO. Rgs mrs
-
Pls send material for idocs in ECC 6.0
Pls send material for idocs in ECC6.0
-
Entering special language characters in JSF
I am using JDeveloper 10.1.3.3 to develop a JSF/ADF application. My database is using the AL32UTF8 character set. If the following is entered into an af:inputText field.... Podmiotowi w 2 okresie leczenia proszę ... when the record is saved it change
-
White/Blank Screen After QT 7.0.3 Update
Ok, I am having the same problem as others on this board, and, after having sifted through every single thread, I still have not come up with any correctable answers to this problem. I, like others, recently updated to QT 7.0.3, and now any .mov or o
-
Cisco 3560 interface, not connected
Hello I am in the process of determining available switch ports based on last usage and I came across the following that I don't understand. Switch-3560G-1#sh int | I Last|Gig GigabitEthernet0/7 is down, line protocol is down (notconnect) Hardware