Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getApplicationData

 

getApplicationData

Syntax

system.DBApplication.getApplicationData [#application: "appName", #attribute: #attributeName, #text: "searchString"]
system.DBApplication.getApplicationData [#application: "appName", #attribute: #attributeName, #number: integer]
system.DBApplication.getApplicationData [#application: "appName", #attribute: #attributeName, #lowNum: integer, #highNum: integer]

Description

Multiuser Server command; obtains the list of attributes and values from all DBApplicationData objects that correspond to the given application and contain the given attribute with the given value. The given value may be a string, an integer, or a range of integers. The result is a list of lists, each of which is the list of attributes and values for a single DBApplicationData object.

If the #application parameter is omitted, it defaults to the movie ID of the current movie used to connect to the server.

Up to 100 DBApplicationData objects may be returned per request.

Example

This statement returns the lists of attributes from the DBApplicationData objects for the movie Poker that contain the attribute #dealerName with a value of Larry:

errCode = gMultiuserInstance.sendNetMessage ("system.DBApplication.getApplicationData", "anySubject", [#application: "Poker", #attribute: #dealerName, #text: "Larry"])

The server's response looks like this:

[#errorCode: 0, #recipients: ["userName"], #senderID: "system.DBApplication.getApplicationData", #subject: "anySubject", #content: [[#dealerName: "Larry", #tableColor: color(#rgb, 155, 0, 75), #wallArt: (media 7afa4d0)]], #timeStamp: 189027987]

See also

createApplicationData, deleteApplicationData, sendNetMessage()