[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #WWV-305170]: select data source by using script


> Normally, If I want to get value and do caculation with grid data, I
> have to create a formula, create function with Jython and select data
> source from "Field Selector". I want to ask are there any way to select
> data source by using script only so I do not have to create formula and
> manually choose data from " Field Selector" ?

Yes. Look at the routines in the shell.py jython library:

In particular you can call:
def getData(dataSourceName=None,dataChoiceName=None):

This finds the first data source if the dataSourceName==null. Else it tries to 
match on the data source name which can be set in the data source properties 


Ticket Details
Ticket ID: WWV-305170
Department: Support IDV
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.