TreeTable control: where is hasExpander property?
Hi all,
I'm using TreeTable control to show dynamically loaded data.
When the first level elements are loaded, I am not loading the whole tree, just the root.
The children levels will be loaded when the toggleOpenState event is triggered.
I have found out that in order to show an expander next to a given node, it should be bound to a model item like the following:
var myData = {root: //some JSON here...
0: {
name: "this is my node name",
description: "this is my node description",
0: {} //this line will let the node be rendered with an expander icon next to it
//more JSON here
This looks like a hack to me.
I guess there must be a cleaner solution. I'd like to have an hasExpander property as for the Tree control.
I could find no such property on the manual however.
Does anybody know how this can be done?
Thanks, regards
Vincenzo
Hi all,
I'm using TreeTable control to show dynamically loaded data.
When the first level elements are loaded, I am not loading the whole tree, just the root.
The children levels will be loaded when the toggleOpenState event is triggered.
I have found out that in order to show an expander next to a given node, it should be bound to a model item like the following:
var myData = {root: //some JSON here...
0: {
name: "this is my node name",
description: "this is my node description",
0: {} //this line will let the node be rendered with an expander icon next to it
//more JSON here
This looks like a hack to me.
I guess there must be a cleaner solution. I'd like to have an hasExpander property as for the Tree control.
I could find no such property on the manual however.
Does anybody know how this can be done?
Thanks, regards
Vincenzo
Similar Messages
-
Can you control where a new form().show() pops up?
hello
i wonder if you can control where the new form().show() pops up. can i set it on the right button cornet for a specific form?
or any other place? a specific point relative to screen's resolution?
thank you again.Set the StartPosition property to Manual and then specify the location of the Form using the Location property. Please refer to the following thread for more information:
http://stackoverflow.com/questions/17369159/setting-forms-location-when-calling-form-show
Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question. -
Control where findGrep and changeGrep is performed (ex. a specific textframe)
Indesign cs5.5 ... MacOSX ... Javascript
I'm getting very VERY close to figuring this blasted project out .. so any help on this issue would be most appreciated. (and to all who have already helped me get this far, thanks to you as well)
Basically what I'm trying to do is pickup page numbers from a generated list (from an Indesign-made TOC), and insert those numbers as appropriate on page 2 of my document.
I'm calling the generated table of contents "tocGen" ... and the supplied list "page2TOC"
One by one, I need to pickup the town name and page number in tocGen, and replace those values with their matches in page2TOC. I'm trying to accomplish this with a series of findGrep() and changeGrep() methods.
The first time through, it works great. It picks up "5\tBethel" from the tocGen, and puts it in place of "XX\tBethel" in the page2TOC.
The second time I run the script, it ends up picking up the first line of the page2TOC ... instead of in tocGen, where it had during the first run. Makes sense, since that line is now the same format as the list in tocGen.
So it would seem that if I could control where the first findGrep is directed, the script should move onto the next town each time I run it, without issue.
So that's my question ... how do I point to a particular textFrame on a particular page for a findGrep and/or changeGrep?
Kind of what would happen if I selected " Search: Story" on a normal find/change in Indesign:
Thanks to any and all.
Cheers,
~Nate
Supplied list (on page 2)
Fairfield County
XX Bethel (B) 01/27/2012
XX Bridgeport (W) 01/19/2012
XX Brookfield (W) 01/17/2012
XX Danbury (W) 01/26/2012
XX Darien (W) 01/17/2012
XX Easton (B) 01/13/2012
XX Fairfield (W) 01/12/2012
XX Greenwich (W) 01/26/2012
XX Monroe (W) 01/17/2012
XX New Canaan (W) 01/17/2012
XX New Fairfield (B) 01/13/2012
XX Newtown (W) 01/24/2012
XX Norwalk (W) 01/26/2012
XX Redding (B) 01/25/2012
XX Ridgefield (W) 01/09/2012
XX Shelton (W) 01/12/2012
XX Sherman (M) 12/30/2011
XX Stamford (W) 01/19/2012
XX Stratford (W) 01/20/2012
XX Trumbull (W) 01/19/2012
XX Weston (B) 12/28/2011
XX Westport (W) 01/13/2012
XX Wilton (W) 01/03/2012
Generated list (on a master page):
tocGen
5 Bethel
5 Bridgeport
6 Brookfield
7 Danbury
7 Darien
8 Fairfield
8 Greenwich
10 Monroe
10 New Canaan
11 Newtown
11 Norwalk
13 Redding
13 Ridgefield
13 Shelton
14 Stamford
17 Stratford
18 Trumbull
19 Westport
My code thus far:
// reference to tocGen text frame, an indesign generated table of contents
var tocGenFrame = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
// reference to page2TOC ... the supplied toc with the xx's
var page2TOC = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
app.findChangeGrepOptions.includeLockedLayersForFind = true;
app.findChangeGrepOptions.includeLockedStoriesForFind = true;
app.findChangeGrepOptions.includeHiddenLayers = true;
app.findChangeGrepOptions.includeMasterPages = true;
app.findChangeGrepOptions.includeFootnotes = true;
//select generate TOC
tocGenFrame.select();
//grab current town and whole line (has page number and town)
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
currentGen = app.activeDocument.findGrep();
currentLine = currentGen[0].contents;
currentMatch = currentGen[0].contents.match("^\\d+\\t(.*)$");
currentTown = currentMatch[1];
app.findGrepPreferences.findWhat = "^\\d+\\t"+currentTown+"$";
app.changeGrepPreferences.changeTo = "---";
app.activeDocument.changeGrep();
// function that replaces "XX\tTown" with currentLine from above
replaceTown();
function replaceTown()
app.findChangeGrepOptions.includeLockedLayersForFind = true;
app.findChangeGrepOptions.includeLockedStoriesForFind = true;
app.findChangeGrepOptions.includeHiddenLayers = true;
app.findChangeGrepOptions.includeMasterPages = true;
app.findChangeGrepOptions.includeFootnotes = true;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "^XX\\t"+currentTown+" \\(";
app.changeGrepPreferences.changeTo = currentLine+" \(";
app.activeDocument.changeGrep();
// $.writeln(currentXX);That's great, thanks Jongware.
I could have sworn I'd tried to do that, but it didn't work at the time. Clearly I was doing it wrong, and then I thought that maybe changeGrep couldn't be applied to anything beside the document ... which of course, is silly.
Thanks so much, as always. -
Tab control and Multiline mode property
We are using tab control with multiline mode property true. We have around 20 tab pages and because of multiline mode property items are displayed in three rows. Annoying thing is whenever we do selection of a tab in first row tab items get rearranged
and my selected tab will come to last row. Is any one facing the same issue. Please suggest me.The selected Tab has no bottom border (assuming top alignment) and so the selected tab should always merge with the tabpage. This is why the row with the selected tab always moves to the tabpage border. If you don't want this behaviour then set the tabcontrols
appearance to Button and the rows will not change when a tab is selected.
Mick Doherty
http://dotnetrix.co.uk
http://glassui.codeplex.com -
AFS Material Master - Control where sold
Hello experts,
I am new to AFS and I am loading Material Master records in my test system. I wanted to create a Material Master, assign the Master and Sales Grid to it.
My question is how might one go about using a Sales Grid, or any other piece of functionality, to control where a particular Material can be sold. Can that be maintained at the SKU level or the Material level? How can I do something like that?
Thanks for your time.Hello Friend,
Kindly check the below SAP AFS Help link for more details
http://help.sap.com/saphelp_afs64/helpdata/en/b9/4eaa381e426019e10000009b38f8cf/frameset.htm
It has all the information about Master grids and Application Grids (Sales grids and Purchase Grids) .
Regards
Sudha -
3 axis motion control- where do I start?
I have to develop a hearing aid hybrid test system which will test an array
of hybrids. I already have the individual hybrid test code but need some
guidance with the motion control. Does anybody have any good references
for me on what aspects should be considered. All I really want to do is
step
and test but don't know much about motor types stepper/servo etc, limits,
calibration etc. Any tips would be greatly appreciated.
Regards,
Dow Airen
Design Engineer
Crystalaid Microelectronics P/LWe use http://www.jrkerr.com/index.html motor control system. This uses
low cost Pics and a serial network. The drivers are a DLL and can be
called from LabVIEW. I have built multi axis devices and it has worked
real reliable. (No problems).
A company called Compu-Motion has experience building low cost hardware and
software for mult-axis devices. Compu-Motion web site is
www.compu-motion.com. Compu-Motion could help you build the hardware or
software.
John Harmon
330-848-0460
----- Original Message -----
From: Dow Airen
Newsgroups: comp.lang.labview
Sent: Wednesday, November 24, 1999 12:33 AM
Subject: 3 axis motion control- where do I start?
>
> I have to develop a hearing aid hybrid test system which will test an
array
>
> o
f hybrids. I already have the individual hybrid test code but need some
>
> guidance with the motion control. Does anybody have any good references
>
> for me on what aspects should be considered. All I really want to do is
> step
> and test but don't know much about motor types stepper/servo etc, limits,
> calibration etc. Any tips would be greatly appreciated.
>
> Regards,
>
> Dow Airen
> Design Engineer
> Crystalaid Microelectronics P/L -
I'm scanning photos to my iphoto . After they are scanned I find them at the beginnoing of my iphoto collection and have to scroll them down through 12,000,,photos. Is there any way I can control where the scanned photos will appear in iphoto?
You are asking about scanning photos to iPhoto on your Mac, right? This is the "iPhoto for IOS" forum, not the "iLife iPhoto" foruum for iPhoto on a Mac. Next time better post directly in the iLife forum - you will find more helpers there.
have to scroll them down through 12,000,,photos
Where do you look for your scanned photos? In the "Photos" view of the source list? I'd suggest, you look in the "Events" section. If you scan directly to iPhoto (assuming you use "Image Capture"), your scanned images will appear in the "Events" as "Unknown Project", and the events are sorted according to the settings in the "View" menu, "Sort Events" (assuming you are using iPhoto 9.x.x)
If you want them to appear in an event with a specific name, don't scan directly to iPhoto. Direct the scanned images to a folder, and then import this folder to iPhoto. Then the photos will be imported into an event with the name of the folder.
Regards
Léonie -
Having a problem installing Quicktime/itunes software can't control where it's going to download
so i'm trying to load quicktime/itunes software on my Win7 laptop. had it on the same laptop but with vista. i can not control where the software is being downloaded too. Trying to send to my external drive labeled originally F: somehow it got changed to I:. The package doesn't recognize the label F: and says there's not enough space. I have 410gbs free! The package doesn't give me the option to change where i want to send it. Can't DL bonjour for the same reason. Safari 5 wasn't a problem. So what's the verdict, y'all? I can't update my itouch, which i'm sure sorely needs it.
Thanks in advance
Nagooshok so after days of trying I finally got it to work...
here's what I did.
1. Uninstall old versions of iTunes. Reboot.
2. Uninstall old versions of Quicktime. Reboot.
3. go in and remove any left over traces of QT or iTunes from hard drive
4. Remove temp files related to itunes or quicktime. Reboot.
5. Uninstall audio driver for audigy 2 (WDM)
6. Install new version of iTunes
7. reinstall drivers for audio
8. reboot
9. check audio drivers (for some reasons even though I reinstalled it didn't come back as the right one after the restart and was listed as disabled) update the driver.
10. Reboot again
11. now things should work again.
2 quick notes... Make sure to save a backup copy of your itunes library.itl and your itunes music library.xml so you can system restore back and have the old version work, just in case.
now I Can't be sure... but I assume something like step 9 was happening and not showing up that way in my drivers... although that doesn't explain why uninstalling and fresh installing after installation didn't fix it earlier. but it works now and I'm thrilled. -
Revision: 5893
Author: [email protected]
Date: 2009-04-02 16:30:46 -0700 (Thu, 02 Apr 2009)
Log Message:
Fixed compiler errors and updated to 2009 namespace w/ Spark controls (where applicable).
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/printing/examples/PrintDataGr idExample.mxml -
Control text with a property node
Hello all,
I have an application where I need to change the text displayed on the screen. This is not a text control, or indicator, nor is it any other "obect" in the controls palette. This is just plain text (press shift and right click to enable writing text). I've seen this done before, so I know it can be done. I did it myself a couple years ago, but that example was lost to a drive crash. It involved somehow getting the refnum of the text, or something like that, and using a property node to change it. Does anyone know exactly how this is done in LavVIEW 7.0?
Thanks.
RickHere's a way to do it (LV 7.0). You should clean up the code to make sure references are closed, etc.
Attachments:
Change text.vi 21 KB -
I am trying to use a property node: visible in order to enable or disable one of two clusters. These clusters are in a larger cluster and this larger cluster is in an array. The two clusters are controlled by a radio button (one labeled transistor and the other diode). When diode is selected, the corresponding diode parameters cluster should be visible and when transistor is selected, the corresponding transistor parameters cluster should be visible. In the mean time, the cluster of the device that is not selected should not be visible. There are at least 45 elements in the array (but not more than 45). Data is entered into each cluster (diode or transistor data) for each element in the array via the increment/decrement. The problem is when you select the first radio button (transistor) and enter data, when you increment the array for a new device selection, since a visible property node was used on the cluster, a loop is created where a new cluster is trying to be shown, but the old cluster is also trying to be shown (because it is the one referenced by the property node. How do I get rid of this loop and still be able to increment the array and keep my data intact for future use? Attached is the vi
Attachments:
ChooseScan.vi 17 KBYou could try something like this. However, if you know how to use an xcontrol, that would be a better way to implement the above functionality so that these UI characteristics are not a part of your main VI. The problem with the above VI is that you're looping every 100 ms just to update your UI.
Also, try using the "disabled" property node, instead of the "visible" one. That way, the user will still see the options he has but they will be grayed out.
Message Edited by Sudhir Gopinath on 06-25-2007 04:45 PM
S G
Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor
Attachments:
ChooseScan_1.vi 19 KB -
Save array control to .cfg with property nodes.
Hi there!
I have a front panel with many (and I mean many!) boolean arrays in tabs, and I want the option to save the values selected by the user to a .cfg file, which will be used to make the same selection again without the tedium of clicking on buttons. The only controls I want to save the value of are 1D boolean arrays of length 7 or 11, and these occur only on some of the tab pages; the others have been setup so that on their iteration a false criteria is met and no code executes.
I have managed to get references to each control in each tab, and using a 'more specific class' function to narrow it down to Array controls only. However, when this runs, an error from 'convert variant to data' pops up, and use of a probe tells me the reference being called by my property node at the time of the error is that of an array INDICATOR, rather than a control. I thought the 'controls on page' node and subsequently the array control class specifier would mean that references for other types of array wouldn't make it into the true case where the saving to config file happens.
The indicator in question is an array of a cluster of two strings and a string array, if that makes any sense/has any relevancy, and the error occurs on iteration 1 of the outer loop and iteration 21 of the inner loop, corresponding to the 22nd control reference from the second tab.
I hope I've made the problem clear.There is a property called Is Control? (or Is Indicator?) that will help you sort them out. I do not recall the exact name of the property but that should get you close enough to find it.
Lynn -
A problem with binding a visual control to a class property defined with a getter&setter pair
hi,
I am having the following problem (simplified here for
clarity):
I am using a class for data model with a property named
x (using a getter & setter) as follows:
quote:
[Bindable]
public class MyData
private var _x :String;
public function MyData()
_x = "default value";
public function set x(value:String):void {
trace("setting x with: '" + value + "'");
_x = String(value);
public function get x():String {
trace("getting x: '"+_x+"'");
return _x;
I then linked (binded) the
x property to a TextInput, as follows:
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
[Bindable]
private var _data:MyData = new MyData();
]]>
</mx:Script>
<mx:TextInput id="inputX"
text="{_data.x}" />
</mx:Application>
When loaded,
inputX is set with the "default value". However, when
changing the value of
inputX the value of
_data.x remains unchanged (in this sample - there are no
trace messages from the setter).
I have tried numerous variations using <mx:Bindind
...>, mx.bindinding.utils.BindingUtils, changing order of setter
and getter, and more.
The only solution i could find for now is to add a change
event handler to the
inputX control as follows:
quote:
<mx:TextInput id="inputX" text="{_data.x}"
change="_data.x=inputX.text"/>
Is there something i did wrong? or is it ... simply ... a bug
thanx,hi,
thanx for your quick reply.
The actual problem was the that _data.x initialization should
not be done in the MyData constructor, but after the object is
fully created, as follows:
[Bindable]
private var _data:MyData = new MyData();
// called in the application's initialize event
public function init():void {
_data.x = "default value";
After this, adding the <mx:Binding> does the trick for
the inputX.text --> _data.x binding, and there's no need to add
"this". I simply have assumed (being a novice flex developer) that
using <mx:TextInput id="inputX" text="{_data.x}" /> binds for
both directions inputX.text <--> _data.x.
thanx again,
yaron -
Using WHERE command in property loader SQL query
Hello All,
Hopefully this will be a fairly straight forward question.
I am attempting to use Property Loader to read in test limits from a SQL database. There are many types of models that need to be tested, each having a unique set of limits. I want to be able to retrieve the appropriate limits for the model of product under test.
To do this I have the product model number available in a FileGlobal. The database contains a table with the test limit information with an identifying 'ModelNumber_Number' column.
I have written the following SQL query achieve this:
"SELECT * FROM TESTLIMITS WHERE ModelNumber_Number=+ FileGlobals.ModelNumber"
However, this is where I am confused. I'm not sure on the syntax for accessing a variable in the SQL command. I receive the following error:
The multi-part identifier "FileGlobals.ModelNumber" could not be bound.
Can someone please provide guidence on how to do this?
Many thanks,
Cam.
Solved!
Go to Solution.Thank you very much for your reply.
Upon changing the query to as you suggest, I am presented with the following:
Error In SQL Statement Expression. "SELECT * FROM TESTLIMITS WHERE ModelNumber_Number = " + FileGlobals.ModelNumber
Specified value does not have the expected type.
The type of FileGlobals.ModelNumber is a numeric represented as a double precision 64 bit signed integer.
The database column is also of type int 64.
Can you suggest a solution?
Many thanks. -
How to optimize portal javascript and css - where is scriptset property ?
Hi,
I've downloaded <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d164c5ee-0901-0010-4fbf-d0856b5c8a84">How to Finetune Performance of Portal Platform</a> document,
which contains portal performance optimization tips.
In this pdf file there is a section about optimizing javascript and css code by using
scriptset property and there is also appropriate reference to the help.sap.com portal page.
The problem is that this page is not there so I'm unable to configure this scriptset property.
Any ideas where can it be found?
Regards,
Ladislavyes - go into System Adminstration --> System Configuration and then Service Configuration (in the detailed Nav).
In there, find application com.sap.portal.epcf.loader - In Services --> epcfloader the property you seek is script.set and you should change from standard to optimize. Then you need to restart the service.
Hope that helps
Haydn
Maybe you are looking for
-
Some Pages documents do not show up in Quick Look properly
After upgrading to Yosemite, when hitting the Space button on some Pages docs to see them in Quick Look, all I get is a thumbnail of the doc next to it's title, last modification and size. This is not the issue with all Pages docs, but only with some
-
Blurry raw photos in Photoshop cc
When I upload my raw images to photoshop cc they are very blurry even if I do not touch them in camera raw and I am not able to edit at all in photoshop because of how blurry they are. But if I open the images in Lightroom or bridge they are not blur
-
How do I transfer/place my existing Final Cut Pro X on my new iMac?
I have been using Final Cut Pro X on a Mac Book Pro. I just upgraded to an iMac 27". How do I transfer/add my existing download of Final Cut Pro X to my new iMac?
-
Cclick listeners not wokring c#
Hi All , I have posted a question in stack overflow . Can any one please check it and provide me the solution if there is any http://stackoverflow.com/questions/28728666/click-listeners-not-working-in-windows-phone-c-sharp
-
PPT to Captivate 3: image import issue
Hi, I'm creating a Captivate project by importing a PowerPoint 2003 project. After I import them (but not in PowerPoint), some of the slides have weird images or words that show up. Sometimes there's a grey or black blob in the upper left corner, som