How to get name of property field of SPSS objects - spss

Hi I'm new to SPSS scripting. I'm using IBM SPSS Modeler 17.1. I need to understand how to refer the property field name in SPSS. For example, I'm using distribution object under graph & for setting the color property of the object I'm using fieldname as "color_field" and code I'm using is node.setPropertyValue("color_field","Drug") By opening the object in SPSS Modeler window I can see a property named as Selected field. I want to use that property. Is there any way in SPSS modeler so that I can get the name of the property field in my SPSS script by visually seeing the property in Modeler Window?
Thanks in Advance

You can find the available properties for each node in the Scripting and Automation section of the Modeler Help.
There is section that is specific to the Distribution node, which lists the properties that are specific to that node.
There is no resource that directly connects the selections in the user interface with the node slots, but the naming is pretty self-explanatory for the most part (but not always).

Related

Neo4j OGM Filter query against array

I'm trying to build a small property searching system. I'm using spring boot with a neo4j database and I'm trying to query from the neo4j database using filters becasue i need the querying to be dynamic too. In my use case properties has features such as electricity, tap water, tilled roof, etc. Property & Feature are nodes, Feature node has an attribtue named 'key', a Property node is linked to many Feature nodes by rich relationships typed HAS_FEATURE, what i want to do is query properties for a given array of feature keys using Filters. Follwing is code,
featureKeys is a java List here,
filter = new Filter("key", ComparisonOperator.IN, featureKeys);
filter.setRelationshipType("HAS_FEATURE");
filter.setNestedPropertyName("hasFeatures");
filter.setNestedPropertyType(Feature.class);
filters.add(filter);
SESSION.loadAll(Property.class, filters, new Pagination(pageNumber, pageSize));
The problem is i want only the properties that related to all the given features keys to be returned, but even the properties that is related to one element of the given feature key list is also returned. What do i need to do to query only the properties that are linked to all the given list elements, i can change the rich relationship to a normal relationship if needed.

Livebindings Expressions for 2 TComboboxes parent to child relationship using ClientDataSets in RAD Studio

I am trying to connect the parent TCombobox to child TCombobox using the Livebindings in RAD Studio. Meaning, when I select a customer in the parent Tcombobox, the child Tcombobox will generate the jobs under the parent only.
I have tried some binding expressions as you can see in the screenshots below but no avail. I also included below my tables screenshots.
What I want to achieve is to limit the list of jobs with customer-related jobs only. The screenshot below highlighted in blue should be the ones in the dropdown only.
Any help would be greatly appreciated.
I want to conclude this question by answering my own question. I wouldn't get the answer if not for some nice people here willing enough to share quick help. Here's what I got:
I used the ClientDataSet Filtering here. First, I initialized the key field of my clientdatasetJob then set the range of filter by the value selected in the combobox.
cdsJob.IndexFieldNames := 'CustomerName';
cdsJob.SetRange([cmbCustomer.Text],[cmbCustomer.Text]);
You might wonder why same values given in the set range. Basically, I don't need the range but a single value only. I added as well the field CustomerName in the clientdatasetJob for my key field.

How to build "if statement" in SPSS Modeler?

could you please advise how to build "if statement" in SPSS Modeler if we have two data sources?
One data source (1) is a table (an output node generated by SPSS Modeler) where all the IDs are listed with which we need to work further.
Another data source (2) is an Excel file where all the IDs are listed whereas this list includes some IDs from (1) but also some additional ones - to all these IDs are assigned values that are needed to be added to the data source (1) not necessarily to the table.
So if the ID from (1) is in (2) we would like to assign a value from (2) to the ID in (1) and have it stored in some table or even better in a file.
Thank you very much for your help / advice.
Patricia
Based on your problem it sounds like you want to merge these datasets. This can be easily done in Modeler via the Merge Node, just make sure the variables have the same name or Modeler won't recognize it as a key. You can see an example here
You can also create a flag variable using the Derive node, see example here
You will have to use the Merge Node to combine the 2 datasets but you don't have to give the same name for the keys IDs. You can use the option condition in the Merge Node without the necessity of having the same name and even the same type of variable.
Syntax example for the merge Node - option condition: 'ID' = 'id'

access 2010 listbox OLE field

I have a simple query showing serial numbers and a machine type for a simple searchable function within a form. this query also contains an OLE column whih contains customer gathered data from a machine (parameters and alarm histories etc). I want the OLE section to be included within the list box so when the machine is searched for, the searcher will have access to all of the data for that machine.
is there an 'on click' or 'on enter' command for this?
Many thanks in advance
You put the recordID, along with the serial number and machine type in the query for the list box. then when the listbox selection is made, the event can trigger filling in the OLE field on the form - by using the recordID of the selected item.
All that being said - it's a huge guess as to even what you're talking about because you haven't shown us any form or table design or query.

Neo4j Web Admin how to display relationship properties?

I've generated a Neo4j graph and created visualization of the graph using the 'Style' rules on 'Data Browser'. I was able to display the properties of the Nodes. It looks like the style rules can only be applied to Nodes. However I want to display (visualize on data browser) the properties on the relationship. Is this possible? If so, how do I do it?
I read through the Neo4j documentation and also searched in the Neo4j forums but had no luck.
I appreciate any help.
TIA
For example:
(is a)
(Josh) --------------------> (Male)
(demographic=gender)
(created=09/25/12)
Where demographic, created are properties of the relationship 'is a'.
Well, since you extended the question to available options, not just Webadmin:
The Neo folks put up a side about visualization options: http://www.neo4j.org/develop/visualize
For your use case, try Neoclipse https://github.com/neo4j/neoclipse/downloads
it allows to specify which properties to display on nodes and relationship (be sure to enable the filters in the Graph Database View or the preferences won't have any effect). It look similar to the webadmin, but can be customized more.

Resources