Difference between revisions of "Lianja"

From Lianjapedia
Jump to: navigation, search
(Properties)
 
(218 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
====Properties====
 
====Properties====
  
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
+
This class supports the following properties:
  
{| class="wikitable"
+
{| class="wikitable" width=100%
!width="20%"|Property
+
!width="15%"|Property
!Access (R/RW)
+
!width="5%"|Access
!Value
+
!width="15%"|Value
 
!width="50%"|Description
 
!width="50%"|Description
 +
!Desktop||  Web  ||Mobile 
 
|-
 
|-
|valign="top"|Editor
+
|valign="top"|activepage
|valign="top"|R
+
|valign="top"|RW
 
|valign="top"|Object
 
|valign="top"|Object
|valign="top"|Return an object reference to the Editor
+
|valign="top"|Return an object reference to the currently active [[PageBuilder|Page]]
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|Database
+
|valign="top"|Appdir
|R
+
|valign="top"|R
|Character
+
|valign="top"|Character
|Currently active database
+
|valign="top"|Full path of the current App directory
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|Table
+
|valign="top"|application
|R
+
|valign="top"|R
|Character
+
|valign="top"|Character
|Currently active table
+
|-
+
|Application
+
|R
+
|Character
+
 
|Currently active App
 
|Currently active App
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|Version
+
|valign="top"|args
|R
+
|Character
+
|Software version
+
|-
+
|valign="top"|ActivePage
+
 
|valign="top"|RW
 
|valign="top"|RW
|valign="top"|Object
+
|valign="top"|Character
|valign="top"|Return an object reference to the currently active Page
+
|Arguments passed to current App.  From v6.0.
 +
|style="background: green"| 
 +
|style="background: green"| 
 +
|style="background: green"| 
 
|-
 
|-
|}
+
|valign="top"|availablecameralist
 
+
|valign="top"|R
====Methods====
+
|valign="top"|Character
 
+
|valign="top"|Comma separated list of available cameras.  From v7.0.
This class supports the '''Common methods''' plus the following:
+
|style="background: lightgreen"| 
 
+
|style="background: red"| 
{| class="wikitable"
+
|style="background: red"| 
!width="20%"|Method
+
!Args
+
!width="50%"|Description
+
 
|-
 
|-
|valign="top"|AddTool
+
|valign="top"|availablecameras
|valign="top"|class as Character, caption as Character
+
|valign="top"|R
|valign="top"|Add a tool
+
|valign="top"|Numeric
 +
|valign="top"|Number of available cameras.  From v7.0.
 +
|style="background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|RemoveTool
+
|valign="top"|Count
|valign="top"|existing as Object
+
|valign="top"|R
|valign="top"|Remove the specified tool
+
|valign="top"|Numeric
 +
|valign="top"|Number of [[PageBuilder|Pages]] in the current App
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|AddObject
+
|valign="top"|database
|valign="top"|existing as Object | newobject as Character, class as Character [, caption as Character]
+
|valign="top"|R
|valign="top"|Add an existing object or a new object, in which case the object's class must also be specified and optionally its caption
+
|valign="top"|Character
 +
|valign="top"|Currently active database
 +
|style="background: green"| 
 +
|style="background: green"| 
 +
|style="background: green"| 
 
|-
 
|-
|valign="top"|RemoveObject
+
|valign="top"|Datadir
|valign="top"|existing as Object
+
|valign="top"|R
|valign="top"|Remove the specified object
+
|valign="top"|Character
 +
|valign="top"|Full path of the current database directory
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|FindElementById
+
|valign="top"|editor
|valign="top"|id as Character
+
|valign="top"|R
|valign="top"|Return a reference to the object with the specified id
+
|valign="top"|Object
 +
|valign="top"|Return an object reference to the Editor
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|GetElementById
+
|valign="top"|Fullscreen
|valign="top"|id as Character
+
|valign="top"|W
|valign="top"|Return a reference to the object with the specified id
+
|valign="top"|Boolean (Int)
 +
|valign="top"|Set / unset main window to fullscreen
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|OpenApp
+
|valign="top"|leftsidebarvisible
|valign="top"|app as Character
+
|valign="top"|W
|valign="top"|Open the specified App
+
|valign="top"|Boolean
 +
|valign="top"|Set / unset Left SideBar visibility
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|CreateApp
+
|valign="top"|Libdir
|valign="top"|app as Character
+
|valign="top"|R
|valign="top"|Create the specified App
+
|valign="top"|Character
 +
|valign="top"|Full path of the current library directory
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|CloseApp
+
|valign="top"|LockScreen
|valign="top"|None
+
|valign="top"|W
|valign="top"|Close the currently open App
+
|valign="top"|Boolean
 +
|valign="top"|Lock screen, disabling screen updates
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|WriteLog
+
|valign="top"|localStorage
|valign="top"|logtext as Character
+
|valign="top"|R
|valign="top"|Write the logtext string to the log
+
|valign="top"|Object
 +
|valign="top"|Return an object reference to the currently active [[LocalStorage]]
 +
|style="background: green"| 
 +
|style="background: green"| 
 +
|style="background: green"| 
 
|-
 
|-
|valign="top"|WriteOutput
+
|valign="top"|Maximized
|valign="top"|output as Character
+
|valign="top"|W
|valign="top"|Write the output string to the Output Window
+
|valign="top"|Boolean (Int)
 +
|valign="top"|Set / unset main window to maximized
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|Console
+
|valign="top"|Minimized
|valign="top"|output as Character
+
|valign="top"|W
|valign="top"|Write the output string to the Console Output Window
+
|valign="top"|Boolean (Int)
 +
|valign="top"|Set / unset main window to minimized
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|OpenDatabase
+
|valign="top"|ProgressLabel
|valign="top"|database as Character
+
|valign="top"|W
|valign="top"|Open the specified database and return a Database object reference
+
|valign="top"|Character
 +
|valign="top"|Progress bar text label
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|ShowDocument
+
|valign="top"|ProgressMaximum
|valign="top"|filename as Character
+
|valign="top"|W
|valign="top"|Open filename using its file association on the client
+
|valign="top"|Int
 +
|valign="top"|Progress bar maximum value
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|AddPage
+
|valign="top"|ProgressMinimum
|valign="top"|id as Character, caption as Character
+
|valign="top"|W
|valign="top"|Add a new Page with the specified id and caption
+
|valign="top"|Int
 +
|valign="top"|Progress bar minimum value
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|RemovePage
+
|valign="top"|ProgressValue
|valign="top"|id as Character
+
|valign="top"|W
|valign="top"|Remove the specified Page
+
|valign="top"|Int
 +
|valign="top"|Set progress bar to the specified value
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|Home
+
|valign="top"|rightsidebarvisible
|valign="top"|None
+
|valign="top"|W
|valign="top"|Return to the App Center
+
|valign="top"|Boolean
 +
|valign="top"|Set / unset Right SideBar visibility
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|SelectWorkspace
+
|valign="top"|sessionStorage
|valign="top"|workspace as Character
+
|valign="top"|R
|valign="top"|Select the specified Workspace
+
|valign="top"|Object
 +
|valign="top"|Return an object reference to the currently active [[SessionStorage]]
 +
|style="background: green"| 
 +
|style="background: green"| 
 +
|style="background: green"| 
 
|-
 
|-
|valign="top"|ShowMessage
+
|valign="top"|standalone
|valign="top"|message as Character
+
|valign="top"|R
|valign="top"|Show the specified message
+
|valign="top"|Boolean
 +
|valign="top"|Whether the App is running as a [[Standalone Executables on Windows|standalone App]].  From v9.5.
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
|valign="top"|ShowNotification
+
|valign="top"|standalonefilepath
|valign="top"|message as Character, wait as Boolean[, count as Numeric]
+
|valign="top"|R
|valign="top"|Show the specified notification message, waiting for the user to dismiss if wait is TrueOptionally specify the remaining number of notifications
+
|valign="top"|Character
 +
|valign="top"|Returns the filepath when the App is running as a [[Standalone Executables on Windows|standalone App]]From v9.5.
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 +
|-
 +
|valign="top"|table
 +
|valign="top"|R
 +
|valign="top"|Character
 +
|Currently active table
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 +
|-
 +
|valign="top"|Theme
 +
|valign="top"|RW
 +
|valign="top"|Character
 +
|valign="top"|Set/Get the current App theme
 +
|style="text-align: center;background: lightgreen"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 +
|-
 +
|valign="top"|UIState
 +
|valign="top"|R
 +
|valign="top"|Character
 +
|valign="top"|The last [[UI States|UI State]] applied.
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 +
|-
 +
|valign="top"|version
 +
|valign="top"|R
 +
|valign="top"|Character
 +
|valign="top"|Software version
 +
|style="background: green"| 
 +
|style="background: red"| 
 +
|style="background: red"| 
 
|-
 
|-
 
|}
 
|}
  
====Events====
+
====Methods====
 
+
[[Lianja Methods|Click here for Lianja Methods]]
This class supports the '''Common events''' plus the following:
+
 
+
{| class="wikitable"
+
!width="20%"|Event
+
!Args
+
!width="50%"|Description
+
  
 +
====Key====
 +
{| class="wikitable" width=100%
 +
|style="background: green"| 
 +
| Supported on this client.<br>Note that for the web/mobile client, this applies to client-side code.  The Lianja system object is not available in server-side functions and procedures.
 +
|-
 +
|style="text-align: center;background: lightgreen"|&nbsp;
 +
| Supported in Lianja/VFP scripting only on this client.<br>&nbsp;
 +
|-
 +
|style="background: red"|&nbsp;
 +
| Not currently supported on this client.<br>&nbsp;
 +
|-
 
|}
 
|}
 +
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Framework Classes]]
 
[[Category:Framework Classes]]

Latest revision as of 06:43, 20 March 2024

Properties

This class supports the following properties:

Property Access Value Description Desktop   Web   Mobile 
activepage RW Object Return an object reference to the currently active Page      
Appdir R Character Full path of the current App directory      
application R Character Currently active App      
args RW Character Arguments passed to current App. From v6.0.      
availablecameralist R Character Comma separated list of available cameras. From v7.0.      
availablecameras R Numeric Number of available cameras. From v7.0.      
Count R Numeric Number of Pages in the current App      
database R Character Currently active database      
Datadir R Character Full path of the current database directory      
editor R Object Return an object reference to the Editor      
Fullscreen W Boolean (Int) Set / unset main window to fullscreen      
leftsidebarvisible W Boolean Set / unset Left SideBar visibility      
Libdir R Character Full path of the current library directory      
LockScreen W Boolean Lock screen, disabling screen updates      
localStorage R Object Return an object reference to the currently active LocalStorage      
Maximized W Boolean (Int) Set / unset main window to maximized      
Minimized W Boolean (Int) Set / unset main window to minimized      
ProgressLabel W Character Progress bar text label      
ProgressMaximum W Int Progress bar maximum value      
ProgressMinimum W Int Progress bar minimum value      
ProgressValue W Int Set progress bar to the specified value      
rightsidebarvisible W Boolean Set / unset Right SideBar visibility      
sessionStorage R Object Return an object reference to the currently active SessionStorage      
standalone R Boolean Whether the App is running as a standalone App. From v9.5.      
standalonefilepath R Character Returns the filepath when the App is running as a standalone App. From v9.5.      
table R Character Currently active table      
Theme RW Character Set/Get the current App theme      
UIState R Character The last UI State applied.      
version R Character Software version      

Methods

Click here for Lianja Methods

Key

  Supported on this client.
Note that for the web/mobile client, this applies to client-side code. The Lianja system object is not available in server-side functions and procedures.
  Supported in Lianja/VFP scripting only on this client.
 
  Not currently supported on this client.