• How import assembly doc?

    Hi everybody. I need import assembly doc, but now in X3 V12 this object hasn't active import check. I try to active and create import template, but all time system says that first line are not completed, and don't create doc. First, in BBY Object…
  • Change Report Name when printing

    Hi There For Sage X3 V12 I am trying to get Sage to print/save with different file name than the Crystal Report name Have added entry point AIMP3 custom script ZAIMP3 Here is my code $ ACTION Case ACTION When "PARAM" : Gosub PARAM Endcase…
  • Script editor V12 & debug

    hi all how do you write & debug code in V12 ? I was told that I can only use eclipse and it is very slow to debug + performance is bad + weird to attach eclipse to a process. eclipse also disconnect from unknown reason during debug. thx B…
  • 4GL- Calling IMPORTSIL from grid contextual menu (GBOUT1) doesn't work

    Hi, I'm facing a weird behaviour. In my specific, I've developed a routine that uses IMPORTSIL to add a new line to an existing sales order. This routine is simple: Reads current SOH data and generates a text file Add a new text line from parameters…
  • How to change record by code

    Hi, Anyone knows if it's possible to change a record by code without leaving and entering the object? For instance, a button on a window that forces the current record to other than the one currently loaded. Is there any standard call…
  • Handshake Error When using External API

    Hi All, We are working on the requirement to create payment gateway integration between x3 and third party API, to build the connectivity with the third party API, we have created the JAR that includes third Party API JAR and using the same from X3…
  • How to modify the quantities of a delivery and its movements of stock through code or import / export template

    I have a validated delivery to which I want to modify both the delivery quantities and the quantities of the stock movements made; I need to do it by code or template. Would anyone know what template to use or how could I develop it?
  • Filter itmref field based on category selected in the management screen in order

    Hi, Please I need serious help, in solving this issue. I created a new field in the management tab called category that is jumps to the product category table. So I am trying to make the selection of itmref field in the line tab in order filter…
  • How to Post Purchase Invoice via Code

    Hi, We want to post Purchase Invoices from code after it has been saved, we have done a similar customization for the Suppliers and it works perfectly. However, for the Purchase Invoices, it does not execute. Here is the code snippet we use. It…
  • GROSS PRICE AND DISCOUNT CALCULATION ON PO LINE SCREEN?

    Hi, I am trying to get a value display on a field on the PO line screen. This is the concept: field description data type [M:POH2]GROPRI entered md8 (internal type: decimal) [M:POH2]DISCRGVAL entered md8 (internal type…
  • Issue with sequence auto-numbering a document field in 4GL

    Short summary: I've created a custom object screen for change control, set up the sequence number, and can get it to populate with an infbox or before field action on the document field (which populates a number in sequence prior to record creation…
  • Add Line to Grid

    HI all, in Sage X3 v11 I need to fill a grid on click but I can't find a way to add lines to my grid, can someone share a script to help me, i'm currently working on Sage X3 SPE Script of that window?
  • Hybrid mode Development specifc/standard script management

    Hi everyone, Is there anyone who have experiance with Hybrid mode development for customer? I have a question how you handle Script managament below is my case: In standard Class PJMTSKITM we have property ITMREF this property has PROPAGATE…
  • Clone record through 4GL

    Hi, I would like to clone an invoice after posting, but the "Child" record will have few changes. Would anyone have a piece of script that clones one record to share, as an example? Just to learn the best way to do it. Thank you. Best regards…
  • Create new record from another object in 4GL

    Hi, I need to create in Sage X3 V9 (patch 6) a new analitycal dimension (object CCE) on creating new Project (object OPP) with some data from the last one, my client request an automatic function on create so any new button are forbidden, in my specific…
  • List folder content in native mode

    Hi We have tried listing folder contents using this two approaches without success. First approach used to work in classic mode. 1. Call SYSTEME2(adxmac(0),"LSADX"-FOLDER,"",FILCOUNT, FILLIST) From ORDSYS (error, 'Unexpected end of JSON input') …
  • EXEC_JS - Get return value of async code / Available modes

    Hello, Does anyone know where I can find a documentation explaining the differences and how to use the modes "wait", "sync" and "future"? I have found some examples of EXEC_JS in the online help but those do not exactly explain the different modes and…
  • How to do "find" in class with nested Collection?

    Hello, I try to make some development in PJM module V11. we have OPPORPJM class there which have Property TAS linked with class PJMTSK During Task planning I Have prepared 3 Phases If I look at Value in Instance GZINSPJM I can see: GZINSPJM…
  • Progress bar in Sage X3 4GL

    Hi everyone, I'm using "Call OUVRE_BOITE From GESECRAN" to show a popup window with a progress bar while doing some stuffs. How can I show the same popup window but with 2 bars, the first for the main task and the second for the sub tasks? Thank you…
  • Reading data from the REST Web Service

    Hi All, We are calling a REST Web Service via the classic 4GL code with " Func EXEC_REST_WS" . I am using a simple GET to retrieve information. The parameters that are described in the Online Help ( link here ) make use of a Return s parameter.…
  • Cannot acess table values

    I made a new table (ZITEMECO) and a new screen (ZITF0) to use inside OITF window but i'm having trouble to read the table, it appears that $LIENS action not working at all, what am i doing wrong. Here is the code of the SPEITF: # Gestão da máscara…
  • How to execute "New Button"

    Hi, i need to call from my 4gl script the "New Button" that is on the right bar of window. Is it possible? Can anyone help me? Thanks a lot!
  • Differences in "LINE" variables (NOL, nolign, NBLIG)

    Hello, Can anyone clarify to me the difference between the variables NOL, nolign, and NBLIG ? I know that NBLIG is a grid variable for all line screens which represents the number of lines on the grid, and that "nolign -1 " references the current line…
  • Using Choose to filter field

    Hi there, Im trying to filter a field based on CHOOSE as I read on greytrix ( http://www.greytrix.com/blogs/sagex3/2014/08/31/adding-selection-window-for-any-action/ ) My code is working but If I use the search (as highlited in the screenshot…
  • 4GL - Consume external webservice

    Hi How can i consume an external webservice within the 4GL language? best regards & thanks