### Getting Started With Alpha Anywhere - Build Your First Mobile App Source: https://documentation.alphasoftware.com/documentation/pages/search_offset=20&pattern=troubleshoot+install A step-by-step guide to building your first Alpha Anywhere application for a mobile web environment. ```APIDOC ## Getting Started With Alpha Anywhere - Build Your First Mobile App ### Description Follow this step-by-step guide to your first Alpha Anywhere application to run in a mobile web environment. ### Method N/A ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### Installing Alpha Anywhere Source: https://documentation.alphasoftware.com/documentation/pages/search_offset=20&pattern=troubleshoot+install A step-by-step guide for installing Alpha Anywhere. ```APIDOC ## Installing Alpha Anywhere ### Description Follow this step by step guide to install Alpha Anywhere. ### Method N/A ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### Example IIS Installation Paths Source: https://documentation.alphasoftware.com/documentation/index_search=howto+iis+publishing+production+and+test+versions Demonstrates typical installation paths for Alpha Anywhere Application Server for IIS, distinguishing between a production and a test environment installation. ```text C:\Program Files (x86)\Alpha Anywhere Application Server for IIS C:\Program Files (x86)\Alpha Anywhere Application Server for IIS - Test ``` -------------------------------- ### Starting Redis Server with Default Configuration Source: https://documentation.alphasoftware.com/documentation/index_search=alpha+anywhere+application+server+for+iis+provider+configuration This snippet demonstrates how to start the Redis server from the command line using its default configuration. It shows the command to execute and the typical output, including the server version, port, and PID. This is useful for initial setup and testing. ```bash C:\Program Files (x86)\A5V12 Application Server for IIS>redis-server.exe [12312] 30 Jun 13:49:33.959 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server.exe /path/to/redis.conf _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 3.0.501 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) |`-._`-...-` __...-.``-._|'` _.-'| | `-._ `._ / _.-' | `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [12312] 30 Jun 13:49:33.986 # Server started, Redis version 3.0.501 [12312] 30 Jun 13:49:33.989 * The server is now ready to accept connections on port 6379 ``` -------------------------------- ### Downloading a File Example Source: https://documentation.alphasoftware.com/documentation/index_search=http_fetch+function Demonstrates how to download a file using the GET method. ```APIDOC ## Downloading a File Example ### Description Files are downloaded using the GET method. ### Method GET ### Endpoint `http://www.alphasoftware.com/hubfs/AlphaAnywhereXbasicGuide.pdf` ### Parameters No specific parameters are shown in this example. ### Request Example ```vbscript dim settings as p settings.host = "www.alphasoftware.com" settings.page = "/hubfs/AlphaAnywhereXbasicGuide.pdf" settings.method = "GET" settings.ssl_on = .t. dim result as p result = http_fetch(settings) if (result.error_code <> 0) then '' ERROR dim errorMsg as c = "Error communicating with server. Error code " + result.error_code + ": " + result.error_text trace.WriteLn(errorMsg,"httpfetch") else if (result.parsed_headers.status_code = 200) then '' sending file to client. dim filename as c = "xbasicGuide.pdf" '' If run in a web application, context.session and context.response '' can be used to return the downloaded file context.session.SaveDataAsFile(filename,result.body) context.response.SendFile(context.session.FormatFileDataURL(filename)) '' !! Important !! '' if file is being downloaded in an Ajax Callback in a component, '' you cannot use context.response. You have to use the '' a5Helper_generateFileDownloadJS() method to generate the JavaScript '' to return to the client to download the file. else dim msg as c = result.parsed_headers.status_code + ": " + result.parsed_headers.reason_phrase trace.WriteLn(msg,"httpfetch") end if end if ``` ### Response #### Success Response (200) - **body** (binary) - The content of the downloaded file. #### Response Example (Binary file content) ``` -------------------------------- ### Creating a Login Page with Xbasic Source: https://documentation.alphasoftware.com/documentation/pages/search_offset=20&pattern=sessions This guide and code examples demonstrate how to create a login page using Xbasic in Alpha Anywhere. It covers the essential steps for user authentication. ```Xbasic DIM user AS C = "admin" DIM password AS C = "password" IF request.variables.username = user AND request.variables.password = password THEN ' Successful login response.redirect("/dashboard.a5w") ELSE ' Failed login response.write("Invalid username or password.") END IF ``` -------------------------------- ### Create Login Page using Xbasic Source: https://documentation.alphasoftware.com/documentation/index_search=Link+a+security+login+to+a+user%27s+table Provides code examples and a guide on creating a login page using Xbasic. This is useful for implementing user authentication within Alpha Anywhere applications. ```Xbasic REM Code examples and a short guide on how to create a login page. * User's Guide * Xbasic * Other Xbasic Topics ``` -------------------------------- ### Get User GUID Example - Alpha Anywhere Source: https://documentation.alphasoftware.com/documentation/index_search=A5WS_Get_User_From_GUID+Function Demonstrates how to obtain a user's GUID using A5WS_Get_GUID_From_User and then retrieve the user ID from that GUID using A5WS_Get_User_From_GUID. This function is limited to web applications. ```Alpha Anywhere dim guid as C guid = A5WS_Get_GUID_From_User("doris") ? guid = "9036155807a2443782ba61ed2a974471" ? A5WS_Get_User_From_GUID(guid) = doris ``` -------------------------------- ### Xbasic 'Guid' Data Type Example Source: https://documentation.alphasoftware.com/documentation/index_search=Variable+Data+Types Shows the 'K' (Guid) data type in Xbasic for creating globally unique identifiers, often used with databases. Examples include creating a GUID using api_uuidcreate() and assigning a literal GUID value, along with error handling for invalid formats. ```Xbasic dim guidVar as K guidVar = api_uuidcreate() ? typeof(guidVar) = "K" ? guidVar = "{1ddf5f1d-62da-4911-84c7-c3bd5dc7a136}" guidVar2 = {f5ab3018-496a-419f-af71-6c19fec1252b} ? typeof(guidVar2) = "K" guidVar2 = {clearly-not-a-valid-guid} ERROR: Invalid Date/ Time or GUID value ``` -------------------------------- ### Setting Help File and Topic Example Source: https://documentation.alphasoftware.com/documentation/index_search=The+Help+Command This example illustrates how to set a specific help file and topic using the {Help} command. It assigns a full path to the help file and a topic name. ```Alpha Anywhere Xdialog {help=c:\mya5data\myapp.hlp:topic_1} ``` -------------------------------- ### Xbasic Array lower Method Example Source: https://documentation.alphasoftware.com/documentation/index_search=api+objects+array+lower+method Demonstrates how to use the .lower() method to get the lower bound (first index) of an Xbasic array. This is particularly useful for arrays that have been defined with custom starting indices, deviating from the default of 1. ```xbasic dim rarr[2..5] as c ? rarr.lower() = 2 dim zarr[0..9] as na for i = 0 to 9 zarr[i] = i next ? zarr.lower() = 0 ``` -------------------------------- ### Downloading a File (GET Request) Source: https://documentation.alphasoftware.com/documentation/index_search=HTTP_FETCH+Function Example of downloading a file using a GET request and saving it. ```APIDOC ## File Download Example ### Description This example demonstrates how to download a file using a GET request and save it to the client's session or send it directly in a web application context. ### Method GET ### Endpoint /hubfs/AlphaAnywhereXbasicGuide.pdf ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```vbscript dim settings as p settings.host = "www.alphasoftware.com" settings.page = "/hubfs/AlphaAnywhereXbasicGuide.pdf" settings.method = "GET" settings.ssl_on = .t. dim result as p result = http_fetch(settings) if (result.error_code <> 0) then '' ERROR dim errorMsg as c = "Error communicating with server. Error code " + result.error_code + ": " + result.error_text trace.WriteLn(errorMsg,"httpfetch") else if (result.parsed_headers.status_code = 200) then '' sending file to client. dim filename as c = "xbasicGuide.pdf" '' If run in a web application, context.session and context.response '' can be used to return the downloaded file context.session.SaveDataAsFile(filename,result.body) context.response.SendFile(context.session.FormatFileDataURL(filename)) '' !! Important !! '' if file is being downloaded in an Ajax Callback in a component, '' you cannot use context.response. You have to use the '' a5Helper_generateFileDownloadJS() method to generate the JavaScript '' to return to the client to download the file. else dim msg as c = result.parsed_headers.status_code + ": " + result.parsed_headers.reason_phrase trace.WriteLn(msg,"httpfetch") end if end if ``` ### Response #### Success Response (200) - **body** (binary) - The content of the downloaded file. #### Response Example (Binary file content - not representable as simple JSON) ``` -------------------------------- ### SalesforceAPIRequest() Example: Making a GET Request Source: https://documentation.alphasoftware.com/documentation/pages/Guides/Data%20Integration/Salesforce/index This example shows how to use the SalesforceAPIRequest() function to make a generic GET request to a specific Salesforce API endpoint. It requires specifying the named resource and the endpoint URL. ```javascript var endpoint = "/services/data/v39.0/sobjects/Account/0011N00001EBYRDQA5"; var result = SalesforceAPIRequest("MySalesforceResource", endpoint); ``` -------------------------------- ### Desktop Icon Configuration for Alpha Anywhere Shadow Database Source: https://documentation.alphasoftware.com/documentation/index_search=Network+Optimization This example shows the correct format for creating a desktop shortcut to launch an Alpha Anywhere shadow database. It specifies the executable path, the shadow database file, and optional startup parameters. ```shell \alpha5.exe \Shadow\\.adb ``` -------------------------------- ### Startup Log Source: https://documentation.alphasoftware.com/documentation/pages/search_offset=20&pattern=troubleshoot+install Information on creating and using a startup log for troubleshooting Alpha Anywhere startup and workspace loading issues. ```APIDOC ## Startup Log ### Description When Alpha Anywhere starts up, a log can be created used to troubleshoot startup and workspace loading issues. If technical support is required from Alpha Software, the technician may request this file. ### Method N/A ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### DeployApplicationComplete Source: https://documentation.alphasoftware.com/documentation/pages/Guides/Alpha%20Cloud/Alpha%20Anywhere%20Developers%20Guide/Alpha%20Cloud%20XBasic%20API Deploys an application by creating a web site, security application, and deployment in a single call. ```APIDOC ## POST /AlphaCloud/Client/DeployApplicationComplete ### Description Deploys a previously published application to a web site. This function can create a new web site, security application, and deployment if they do not exist. ### Method POST ### Endpoint /AlphaCloud/Client/DeployApplicationComplete ### Parameters #### Request Body - **DeplComplete** (Object) - Required - An object containing the deployment configuration. - **DeploymentName** (String) - Required - The name of the deployment. - **ApplicationPath** (String) - Required - The path for the application on the web site. - **WebSite** (Object) - Required - Configuration for the web site. - **Name** (String) - Required - The name of the web site. - **RegionName** (String) - Required - The region where the web site will be hosted. - **HostName** (String) - Optional - The hostname for the web site (omit if no certificate). - **CertificateName** (String) - Optional - The certificate name for the web site (omit if no certificate). - **SecurityApplication** (Object) - Required - Configuration for the security application. - **Name** (String) - Required - The name of the security application. - **RegionName** (String) - Required - The region for the security application. - **PasswordSettings** (Object) - Optional - Settings for password management. - **ChangeonFirstUse** (Boolean) - Default/True/False - Whether to force password change on first use. - **ExpirationINMinutes** (Number) - The expiration time for the password in minutes (-1 for no expiration). - **MinimumLength** (Number) - The minimum length for the password (-1 for no minimum). - **StrengthRegularExpression** (String) - A regular expression for password strength validation. - **Schedule** (Object) - Required - Configuration for the deployment schedule. - **ApplicationVersion** (Number) - Required - The version of the application to deploy. - **AlphaAnywherebuildNumber** (Number) - Required - The Alpha Anywhere build number. - **ApplicationLoggingOption** (String) - Required - The logging option for the application (e.g., "Diagnostic"). - **SecurityPublishOption** (String) - Required - The option for publishing security settings (e.g., "Preserve"). - **LocalStartTime** (DateTime) - Required - The local start time for the deployment. - **LocalEndTime** (DateTime) - Required - The local end time for the deployment. ### Request Example ```json { "DeploymentName": "APITest5", "ApplicationPath": "/", "WebSite": { "Name": "APITest5", "RegionName": "US-East", "HostName": "mobiledemo.alphacloudsamples.com", "CertificateName": "mobiledemo.alphacloudsamples.com" }, "SecurityApplication": { "Name": "TestSA5", "RegionName": "US-East", "PasswordSettings": { "ChangeonFirstUse": "Default", "ExpirationINMinutes": -1, "MinimumLength": -1, "StrengthRegularExpression": "" } }, "Schedule": { "ApplicationVersion": 84, "AlphaAnywherebuildNumber": 4655, "ApplicationLoggingOption": "Diagnostic", "SecurityPublishOption": "Preserve", "LocalStartTime": "2023-10-27T10:00:00Z", "LocalEndTime": "2024-01-27T10:00:00Z" } } ``` ### Response #### Success Response (200) - **Success** (Boolean) - Indicates if the deployment was scheduled successfully. #### Response Example ```json { "Success": true } ``` ``` -------------------------------- ### DotNet Example: Speech Synthesis Source: https://documentation.alphasoftware.com/documentation/index_search=DotNet+Example%3A+Digital+Hash Shows how to use .NET for text-to-speech conversion. This example utilizes the System.Speech.Synthesis namespace to generate spoken output from text. Ensure the Speech SDK is installed. ```csharp using System.Speech.Synthesis; public class SpeechSynthesisExample { public static void SpeakText(string text) { using (SpeechSynthesizer synthesizer = new SpeechSynthesizer()) { synthesizer.SetOutputToDefaultDevice(); synthesizer.Speak(text); } } } ``` -------------------------------- ### Quickstart Text Field Types Source: https://documentation.alphasoftware.com/TransFormDocumentation/index_search=transform+designer+quickstarttext This example lists the supported field types that can be specified in Quickstart Text. Each line demonstrates a field title followed by a colon and the field type keyword. ```plaintext Field title:number Field title:signed Field title:integer Field title:currency Field title:phone Field title:date Field title:datetime Field title:timenow Field title:stopwatch Field title:photo Field title:scanner Field title:audio Field title:signature Field title:location ``` -------------------------------- ### Data Group with Enclosed Section Example Source: https://documentation.alphasoftware.com/TransFormDocumentation/index_search=transform+designer+form+layout This code snippet demonstrates the structure of a Data Group that contains an enclosed Section. The Section is configured for 3 columns, and fields are defined within it. This setup allows for multi-column layouts within each repetition of the Data Group. ```Alpha Software Commands **heading** "Data Group Example" **dataGroupStart** // default settings **sectionStart** // 3 columns, no indent **field** _text_ "Field A" **field** _text_ "Field B" **field** _text_ "Field C" **sectionEnd** **dataGroupEnd** **field** _text_ "Field D" ``` -------------------------------- ### Configuring IIS Membership and Role Providers for PostgreSQL Source: https://documentation.alphasoftware.com/documentation/pages/search_offset=20&pattern=troubleshoot+install Configuration details for setting up IIS Membership and Role Providers with PostgreSQL. ```APIDOC ## Configuring IIS Membership and Role Providers for PostgreSQL ### Description Configuration details for setting up IIS Membership and Role Providers with PostgreSQL. ### Method N/A ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### Xbasic Code Glossary: Connection Snippet Example Source: https://documentation.alphasoftware.com/documentation/index_search=xbasic+guide+sql An example of an Xbasic code snippet saved in the Glossary. It demonstrates establishing a SQL connection and includes the {ip} placeholder for text insertion. ```Xbasic DIM conn AS SQL::Connection IF (conn.open("::Name::AADemo-Northwind")) THEN {ip} ELSE TRACE.writeLn("Error opening connection" + conn.callResult.text,"SQL Log") END IF conn.close() ``` -------------------------------- ### Quickstart Text Example - Form Definition Source: https://documentation.alphasoftware.com/TransFormDocumentation/index_search=Form+Type+Properties+Screen An example of Quickstart Text used to define form fields. This format allows for simple, line-based input for creating form elements, including text labels, input fields with data types, and selection options. ```plaintext # Work Apron Request Form Name Badge Number:number ### Correspond to sweatshirt sizes Size::Small, Medium, Large ``` -------------------------------- ### Xbasic DEBUG Function Example Source: https://documentation.alphasoftware.com/documentation/index_search=api+debug+function This example demonstrates how to use the DEBUG() function in Xbasic to force the application to break into the debugger. It sets up a simple function, prints a start message, activates the debugger, and then iterates through a loop, printing results. The debugger will appear after 'Start' is printed. ```Xbasic function process as C (param as N) select case param = 0 process = "Zero" case param = 1 process = "One" case param = 2 process = "Two" case else process = "Error" end select end function dim result as C trace.writeln("Start") debug(1) x = 0 for x = 1 TO 10 y = mod(x,3) result = process(y) trace.writeln(result) next x trace.writeln("End") ``` -------------------------------- ### DeployApplicationComplete Source: https://documentation.alphasoftware.com/documentation/pages/Guides/Alpha%20Cloud/Alpha%20Anywhere%20Developers%20Guide/Alpha%20Cloud%20XBasic%20API Creates a new deployment from a full specification. ```APIDOC ## DeployApplicationComplete ### Description Creates a new deployment from a full specification. You must DIM an object of type AlphaCloud::DeployApplicationCompleteRequest and populate it prior to making the call. Returns .t. if the function succeeds and .f. if it does not. ### Method *Not applicable (Function within an object)* ### Endpoint *Not applicable (Function within an object)* ### Parameters #### Path Parameters *None* #### Query Parameters *None* #### Request Body - **Request** (AlphaCloud::DeployApplicationCompleteRequest) - An object of type AlphaCloud::DeployApplicationCompleteRequest populated with deployment details. ### Request Example *Not applicable (Requires specific object instantiation)* ### Response #### Success Response - **Result** (Boolean) - .t. if the deployment was created successfully, .f. otherwise. #### Response Example *Not applicable* ``` -------------------------------- ### DeployApplicationToWebSite Source: https://documentation.alphasoftware.com/documentation/pages/Guides/Alpha%20Cloud/Alpha%20Anywhere%20Developers%20Guide/Alpha%20Cloud%20XBasic%20API Deploys an application to an existing website. ```APIDOC ## DeployApplicationToWebSite ### Description Deploys an application to an existing web site. You must DIM an object of type AlphaCloud::DeployApplicationToWebSiteRequest and populate it prior to making the call. Returns .t. if the function succeeds and .f. if it does not. ### Method *Not applicable (Function within an object)* ### Endpoint *Not applicable (Function within an object)* ### Parameters #### Path Parameters *None* #### Query Parameters *None* #### Request Body - **Request** (AlphaCloud::DeployApplicationToWebSiteRequest) - An object of type AlphaCloud::DeployApplicationToWebSiteRequest populated with deployment details. ### Request Example *Not applicable (Requires specific object instantiation)* ### Response #### Success Response - **Result** (Boolean) - .t. if the deployment was successful, .f. otherwise. #### Response Example *Not applicable* ``` -------------------------------- ### Example Custom Search Definitions (DBF/SQL) Source: https://documentation.alphasoftware.com/documentation/index_search=list+alphabetbutton+search Provides example custom search definitions for range-based filtering using either DBF or SQL syntax. These examples demonstrate how to filter records based on the starting character of a specified search field. ```sql A..C = upper(left({searchfield},1)) >= 'A' AND upper(left({searchfield},1)) <= 'C' D..F = upper(left({searchfield},1)) >= 'D' AND upper(left({searchfield},1)) <= 'F' G..I = upper(left({searchfield},1)) >= 'G' AND upper(left({searchfield},1)) <= 'I' M..O = upper(left({searchfield},1)) >= 'M' AND upper(left({searchfield},1)) <= 'O' P..R = upper(left({searchfield},1)) >= 'P' AND upper(left({searchfield},1)) <= 'R' S..U = upper(left({searchfield},1)) >= 'S' AND upper(left({searchfield},1)) <= 'U' V..X = upper(left({searchfield},1)) >= 'V' AND upper(left({searchfield},1)) <= 'X' Y..Z = upper(left({searchfield},1)) >= 'Y' AND upper(left({searchfield},1)) <= 'Z' ``` -------------------------------- ### Example URL for Viewing Published Alpha Anywhere Application Source: https://documentation.alphasoftware.com/documentation/index_search=How+to+Publish+an+Alpha+Anywhere+Application This example demonstrates the typical URL structure for accessing a published Alpha Anywhere web application. It includes 'localhost', the development server port, the project's webroot folder, and the specific .a5w page being accessed. This is useful for understanding how to navigate to different pages after deployment. ```text localhost:8080/ExampleProject/TabbedUI_Admin.a5w ``` -------------------------------- ### Load and Use .NET Class from DLL (Xbasic) Source: https://documentation.alphasoftware.com/documentation/index_search=DotNet+Examples Demonstrates loading, registering, and using a .NET class from a DLL in the standard location. It also shows how to use a constructor to initialize a .NET class with a value upon creation. ```xbasic "This is a placeholder for the Xbasic code demonstrating loading and using a .NET class from a DLL." ``` -------------------------------- ### Example Web Application URLs Source: https://documentation.alphasoftware.com/documentation/index_search=howto+iis+publishing+production+and+test+versions Illustrates common URL structures for production and test web applications hosted on the Alpha Anywhere Application Server for IIS. ```text https://www.myapp.com/ https://www.myapp.com/test/ ``` -------------------------------- ### Get GUID from Group Name (Alpha Anywhere Xbasic) Source: https://documentation.alphasoftware.com/documentation/index_search=A5WS_Get_GUID_From_Group+Function Retrieves the unique GUID for a security group given its name. This function is specifically for web applications and requires the 'Localrequest' argument when called from a web page. It returns the GUID as a character string. ```Alpha Anywhere Xbasic வுகA5WS_Get_GUID_From_Group("Administrators") = "78f972bb35644ffc95fbf894bc524382" ``` -------------------------------- ### Exponentiation Operator (^) Source: https://documentation.alphasoftware.com/documentation/index_search=xbasic+guide+expressions Provides an example of using the '^' operator for exponentiation to calculate powers. ```Alpha Software ? 10^2 = 100 ``` -------------------------------- ### Deploy Application using DeployApplicationComplete Source: https://documentation.alphasoftware.com/documentation/pages/Guides/Alpha%20Cloud/Alpha%20Anywhere%20Developers%20Guide/Alpha%20Cloud%20XBasic%20API This Xbasic script demonstrates the use of the DeployApplicationComplete function to create a new web site, security application, and deployment, then schedules the deployment of a previously published application. It requires detailed configuration for the deployment, web site, security application, and schedule, including names, regions, and build numbers. The function returns a boolean indicating success. ```Xbasic ' ----------------------------------------------------------------------------------------- ' -- Create a web site, security application and schedule a new deployment with them ' ----------------------------------------------------------------------------------------- dim DeplComplete as AlphaCloud::DeployApplicationCompleteRequest DeplComplete.DeploymentName = "APITest5" DeplComplete.ApplicationPath = "/" ' Web Site (the HostName and CertificateName must be omitted if you do not have a certificate) DeplComplete.WebSite.Name = "APITest5" DeplComplete.WebSite.RegionName = "US-East" DeplComplete.WebSite.HostName = "mobiledemo.alphacloudsamples.com" DeplComplete.WebSite.CertificateName = "mobiledemo.alphacloudsamples.com" ' Security Application DeplComplete.SecurityApplication.Name = "TestSA5" DeplComplete.SecurityApplication.RegionName = "US-East" DeplComplete.SecurityApplication.PasswordSettings.ChangeonFirstUse = AlphaCloud::BooleanOrDefault::Default DeplComplete.SecurityApplication.PasswordSettings.ExpirationINMinutes = -1 DeplComplete.SecurityApplication.PasswordSettings.MinimumLength = -1 DeplComplete.SecurityApplication.PasswordSettings.StrengthRegularExpression = "" ' Schedule DeplComplete.Schedule.ApplicationVersion = 84 DeplComplete.Schedule.AlphaAnywherebuildNumber = 4655 DeplComplete.Schedule.ApplicationLoggingOption = "Diagnostic" DeplComplete.Schedule.SecurityPublishOption = "Preserve" DeplComplete.Schedule.LocalStartTime = now() DeplComplete.Schedule.LocalEndTime = addMonths(now(), 3) 'DeplComplete.Schedule.LocalEndTime = System::DateTime::MaxValue ?cl.DeployApplicationComplete(DeplComplete) = .T. ?cl.DisableApplicationDeployment(DeplComplete.DeploymentName) = .T. ``` -------------------------------- ### Speech Synthesis using .NET (Xbasic) Source: https://documentation.alphasoftware.com/documentation/index_search=DotNet+Examples Demonstrates the process of loading, registering, and utilizing a .NET class for speech synthesis from a DLL located in the standard directory. ```xbasic "This is a placeholder for the Xbasic code demonstrating speech synthesis using .NET." ``` -------------------------------- ### Example TransForm List Filter Value Definition Source: https://documentation.alphasoftware.com/TransFormDocumentation/index_search=ondevice+assets+policy This example shows how to define values for a list filter type in TransForm. Each entry in the 'list' array specifies a 'value' for filtering and a 'text' description displayed in the app. Wildcards like '*' can be used for 'starts with' comparisons. ```json "list" : [ {"value": "d*", "text": "Form ID starts with 'd'"}, {"value": "eqInspection", "text": "Equipment Inspection"} ] ``` -------------------------------- ### Quickstart Text Data Group and Change Status Syntax Source: https://documentation.alphasoftware.com/TransFormDocumentation/index_search=transform+designer+quickstarttext This example illustrates how to define data groups and change status buttons using specific prefixes in Quickstart Text. '#Group Heading:dataGroup' and '##Section Heading:dataGroup' define data groups, while '>Change Status Button text' creates a change status button. ```plaintext #Group Heading:dataGroup ##Section Heading:dataGroup >Change Status Button text ``` -------------------------------- ### Load and Use .NET Class with Class File (Xbasic) Source: https://documentation.alphasoftware.com/documentation/index_search=DotNet+Examples Demonstrates using a Class file and also loading, registering, and using a .NET class from a DLL. It includes using a constructor to load a value into the .NET class during instantiation. ```xbasic "This is a placeholder for the Xbasic code demonstrating loading and using a .NET class with a class file and DLL." ``` -------------------------------- ### Alpha Anywhere Publishing Path Example Source: https://documentation.alphasoftware.com/documentation/index_search=applications+server+settings+general Demonstrates the typical publishing path for an Alpha Anywhere A5W page when using the default 'Local Webroot' publishing profile. This shows how workspace and project names influence the final file location on the server. ```text DocumentRoot\WorkspaceName\ProjectName\YourPageName.a5w ``` -------------------------------- ### SQL::Arguments Object - Array Guide Source: https://documentation.alphasoftware.com/documentation/index_search=sql%3A%3Aarguments+set+function Documentation explaining how the SQL::Arguments object supports arrays and providing examples. ```APIDOC ## SQL::Arguments Object - Array ### Description The SQL::Arguments object supports arrays. Here are some examples. ### Method (Not specified, this is a guide, not a specific method) ### Endpoint (Not applicable) ### Parameters (N/A) ### Request Example (N/A) ### Response (N/A) ### Examples (Examples would be provided in the linked documentation) ``` -------------------------------- ### Basic {Help} Command Syntax Source: https://documentation.alphasoftware.com/documentation/index_search=The+Help+Command This snippet shows the fundamental syntax for invoking the {Help} command to display help content. It requires a help filename and a specific help topic name. ```Alpha Anywhere Xdialog {Help=help_filename:help_topic_name} ``` -------------------------------- ### Getting Displayed Value for Spin List Control Source: https://documentation.alphasoftware.com/documentation/index_search=getvalue+method A guide on how to retrieve the display value for a Spin List control, differentiating it from the stored value. ```APIDOC ## Getting the Displayed Value for a Spin List Control ### Description When you define the choices with which to populate a Spin List control, you can specify a 'display value' and a 'stored value' for each value. When you read the current value in the control (using the *[js:{dialog.object}.getValue()]* method, or the *[js:.value]* property on the Spin List object itself), you will be reading the stored value. In this tip we show you how to get the current display value. ### Method N/A (Guide/Tip) ### Endpoint N/A ### Parameters N/A ### Request Example (Refer to the guide for specific implementation details.) ### Response (This is a guide, not an API response.) ### Notes This guide explains how to access the user-friendly display text associated with a selected item in a Spin List control. ``` -------------------------------- ### Get GUID from UserID using A5WS_Get_GUID_From_User Source: https://documentation.alphasoftware.com/documentation/index_search=A5WS_Get_GUID_From_User+Function This function retrieves the unique GUID assigned to a user in the web security system given their User ID. It is restricted to web applications only. The optional Localrequest argument is automatically handled by the server for web page requests. ```xbasic வுகa5ws_Get_GUID_From_User("doris") = "9036155807a2443782ba61ed2a974471" ``` -------------------------------- ### Troubleshooting Alpha Launch Server URL Source: https://documentation.alphasoftware.com/documentation/index_search=alphalaunch This snippet demonstrates how to test the server URL for Alpha Launch by appending '/availableAppInfo.txt'. If this URL does not return a response in a browser, the specified server URL is likely incorrect. This is a common troubleshooting step for issues where published apps are not listed. ```plaintext /availableAppInfo.txt ``` ```plaintext http://192.168.70.157/AlphaLaunchDemo/availableAppInfo.txt ``` -------------------------------- ### HTTP_FETCH: Basic GET Request Source: https://documentation.alphasoftware.com/documentation/index_search=http_fetch+function Demonstrates a basic GET request to fetch content from a specified host and page. It initializes settings, sends the request using http_fetch, and checks for errors. The example also shows how to access parsed headers, including status code and reason phrase. ```Alpha Five dim settings as P dim settings.host as C = "www.alphasoftware.com" dim settings.page as C = "/" dim result as P result = http_fetch(settings) ? result.error_code = 0 ? result.parsed_headers = AcceptRanges = "none" CacheControl = "private" Connection = "close" ContentLength = "47222" ContentType = "text/html" Date = "Thu, 22 Dec 2016 22:11:23 GMT" http_version = "HTTP/1.1" reason_phrase = "OK" Server = "Microsoft-IIS/8.5" ``` -------------------------------- ### Default Document Root Publishing Example Source: https://documentation.alphasoftware.com/documentation/index_search=applications+server+settings+general Provides a concrete example of the file path for an 'index.a5w' page when published using default settings. This example assumes a specific workspace name ('MyApp'), project name ('Default'), and the default 'A5webroot' document root on the C: drive. ```text C:\A5webroot\MyApp\Default\index.a5w ``` -------------------------------- ### Get User's Ulink from GUID (Xbasic) Source: https://documentation.alphasoftware.com/documentation/index_search=A5WS_Get_Ulink_From_GUID+Function Retrieves the 'ulink' value for a given user GUID within the web security system. This function is specific to web applications and requires a valid user_guid. An optional 'request' variable can be passed, typically handled by the server. ```Xbasic ?a5ws_Get_Ulink_From_GUID("432f3df278a24df0a39219be1f356019") = "00000029" ``` -------------------------------- ### Single-line Xbasic Comment Source: https://documentation.alphasoftware.com/documentation/index_search=xbasic+guide+expressions Adds comments to Xbasic code. Lines starting with an apostrophe (') are ignored during script execution and are used for explanations. ```xbasic 'This is a comment square = value * value 'Create a list of countries DIM europe AS C = "Denmark,Norway,Sweden" ``` -------------------------------- ### AlphaCloud::API Register Method Source: https://documentation.alphasoftware.com/documentation/pages/search_offset=20&pattern=troubleshoot+install Registers the Alpha Cloud API for use with Xbasic. The first call installs the latest version, subsequent calls have no overhead. ```APIDOC ## AlphaCloud::API Register Method ### Description Register() is used to make the Alpha Cloud API available to Xbasic. The first call to Register() will check for the latest version of the API and install it if necessary. That first call can be expensive so Alpha Anywhere and Alpha Anywhere Application Server do NOT automatically install the Alpha Cloud namespace. Calling the function more than once does not add any overhead. ### Method N/A ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### Working with Streams for File Upload (Xbasic) Source: https://documentation.alphasoftware.com/documentation/index_search=DotNet+Examples Demonstrates how to create and manage streams, which are often required when a .NET function needs to pass or receive stream parameters. This example specifically shows creating a stream for file uploads. ```xbasic "This is a placeholder for the Xbasic code demonstrating working with streams for file upload." ```