Questions tagged as 'advpl'

1
answer

Send xml via POST to API

I need to send an xml via post to an api, but it gives the following error: String could not be parsed as XML It keeps sending a string, instead of actually sending the XML. The code to create XML: //Monta o XML cXML +=...
asked by 05.12.2018 / 17:07
1
answer

Send file using HttpPost - ADVPL

I'm trying to send an xml file using HttpPost. cUrl := "www.test.com" cPostParms := 'mod=Upload' cGetParms:="" cHeadRet := "" aHeadOut := {User-Agent: Mozilla/4.0 (compatible; Protheus '+GetBuild()+'} HttpPost(cUrl, cGetParms, cPostParms, nTi...
asked by 15.02.2018 / 20:08
1
answer

Change default (default) default query directory in ADVPL

I'm trying to create a specific default query where when the user opens the query the path is already populated with a specific directory defined by me. Today when it opens the directory is always "SERVER \" , as can be seen in the figure below...
asked by 11.07.2017 / 18:51
1
answer

Checking call execution time in ADVPL

My VerifyOnServ(nTimeOut) , is not always obeying nTimeOut passed, either because of it or the server with which it communicates. Then I needed an insistence on its execution obeying nTimeOut Follow the code: cTic :=...
asked by 19.12.2018 / 16:00
0
answers

Label printing in advpl

I have the following mission to develop in advp, I will try to explain what I am trying to do. I need to print transport labels indicating the Ex 1/2 and 2/2 volumes on the printout if the note contains two volumes, this is already printing righ...
asked by 06.11.2018 / 14:39
0
answers

Function that returns Icms St ADVPL

Good morning .. I have the function below that returns the value of the ICMS ST for a field, only the value is returning zeroed. Can anybody help me. Thank you. #INCLUDE "protheus.ch" #INCLUDE "rwmake.ch" #INCLUDE "topconn.ch" #include "TbiCon...
asked by 02.10.2018 / 13:22
0
answers

Create another page in a report in advpl

Good morning .. I'm new to advpl, and I've created a budget impression. But I have a problem and I have no idea how to solve it, and a simple thing but as I am new to advpl I do not even know how to start doing it, when the budget is too big...
asked by 29.09.2018 / 17:32
1
answer

ADVPL - Set focus in an MVC field

I have an entry point in the product registry, where I enable the F12 key to call a function when adding a product. This function displays a screen (MSDIALOG) with fill facilitator and assigns values to some fields in the product registration....
asked by 20.09.2018 / 16:30
0
answers

Change focus from one field to another on MVC screens (ADVPL)

Good afternoon, I set up a screen in ADVPL using the MVC pattern. This screen has FIELD and a GRID (parent and child). No FIELD has only 1 barcode field, when it informs the bar code the system goes there in GRI...
asked by 26.02.2018 / 20:14
2
answers

How to read DBF generated in Protheus in Visual Fox Pro?

I made a DBF in Protheus and I'm having trouble opening the file in Visual FoxPro because it does not recognize the file by returning the message:    Dbf file is not a table. Has anyone ever gone through this or do you know...
asked by 09.09.2016 / 17:03