Command: OpenForm

Previous  Next |  Direct link to this topic

Go to list of all Commands

Syntax: OpenForm(<ObjectType>|<PrimaryKey>);

 

Can open most forms with existing data given an Object type and primary key.

Sample: OpenForm(13|1); opens the A/R Invoice with DocEntry 1.

Sample: OpenForm(13|$[$45.0.0]) will open A/R Invoice with the value in field 45 of the active form

Sample: OpenForm(13|SQL: SELECT '123') will open A/R Invoice with the primary key 123

Sample: OpenForm(112|1) will open the draft that is stored with DocEntry 1 in ODRF table

NB: Requires primary key to be known (Example: DocEntry on A/R Invoice). I is not possible to just reference the document number.

 

Common ObjectTypes:

ObjectType

Description

23

Sales > Quotation

17

Sales > Order

16

Sales > Return

234000031

Sales > Return Request

15

Sales > Delivery

13

Sales > Invoice

14

Sales > Credit Memo

203

Sales > Down Payment

540000006

Purchase > Quotation

22

Purchase > Order

21

Purchase > Return

234000032

Purchase > Return Request

20

Purchase > Delivery

18

Purchase > Invoice

19

Purchase > Credit Memo

204

Purchase > Down Payment

Tip: OpenForm can also open Draft documents. The object-type for drafts are 112

 

It is also possible to open Produmex WMS Objects if you run both B1UP and Produmex WMS at the same time (require PMX WMS 2020.09 or higher)

Produmex Object Types:

ObjectType

Description

Example

PMX:PICKLISTPROPOSAL

Produmex > Sales > Picklist Proposal

OpenForm(PMX:PICKLISTPROPOSAL|1);

PMX:PICKLIST

Produmex > Sales > Picklist

OpenForm(PMX:PICKLIST|1);

PMX:OSE

Produmex > Organizational Structure > [Any SubObject]

OpenForm(PMX:OSE|scanner1);

PMX:MOVEORDER

Produmex > Move Order

OpenForm(PMX:MOVEORDER|1);

PMX:CONTAINER

Produmex > Purchasing > Container Management

OpenForm(PMX:CONTAINER|1);

PMX:INVENTORYLOCKINGINADVANCE

Produmex > Sales > Inventory Locking in Advance

OpenForm(PMX:INVENTORYLOCKINGINADVANCE|1);

PMX:RAW

Raw Produmex Object in JSON Format

(Advanced usage only)

OpenForm(PMX:raw|{ "MessageType": 5, "WindowHandle" : _BOY_WINDOWS_HANDLE_, "DocEntry": 1}); //Container Management (Raw)

 

For more info on the calls to Produmex, please see the following link, or contact the Produmex Support

 

Beas Object Types:

ObjectType

Parameters

Description

BEAS:ItemStructure

Optional item number

Open item structure window

BEAS:ItemHistory

Item number

Open item history window

BEAS:BillOfMaterial

Item Number

Open BoM List for an item

BEAS:Routing

Item Number

Open Routing list for an item

BEAS:Resource

Resource Id

Open Resource details

BEAS:ResourceUtilization

Resource Id | optional Date in format yyyy/mm/dd

Open Resource Utilization

BEAS:WorkOrderStructure

Optional DocEntry

Open Work order Structure window

BEAS:WorkOrder

DocEntry

Open Work order

BEAS:WorkOrderPosition

DocEntry|LineNumber

Open Work order position

BEAS:OwnReport

ReportId

Open a self defined Report

BEAS:APS

ScenarioId

Open APS List for a scenario

BEAS:APSGantt

DocEntry|LineNumber

Open APS Gantt view

BEAS:QCOrder

DocEntry

Open QC Order Details

NB: The OpenForm calls to Beas require Beas version 2021.11 or higher

For more info on the calls to Beas, please see the following link: https://help.beascloud.com/scriptinternal/index.html?jbsbeaswindowname.htm or contact the Beas Support


Similar/Related Commands:
- Activate
- Close
- CloseParent
- PopFormStack
- SwitchToUpdateMode