It is currently 22 April 2025, 21:07 Advanced search

Versione 20 Funzioni RFC e parametri non passati

Domande e risposte su come utilizzare Instant Developer Cloud al meglio

Versione 20 Funzioni RFC e parametri non passati

Postby A.Piunti » 5 March 2020, 9:29

Buongiorno,
ho notato che se si richiama una funzione RFC senza passargli tutti i parametri, quest'ultimi anzichè essere undefined sono '{}';
E' un comportamento voluto?

RIporto un esempio per maggiore chiarezza
Fx
Code: Select all
testParams(string1, string2) {
  console.log(string1)
  console.log(string2)
}


chiamo la funzione con testParams("pippo");
Se la funzione NONè RFC come risultato ho
pippo
undefined

Se si rende la funzione RFC:
Code: Select all
testParams(string1, string2) {

if (app.runsLocally()) {
    //richiama la stessa funzione lato server
    return yield this.rfc(app, "testParams", [string1, string2]);
  }

  console.log(string1)
  console.log(string2)
}


come risultato si ha:
pippo
{}
User avatar
A.Piunti
 
Posts: 317
Joined: 1 January 2015, 13:20

Re: Versione 20 Funzioni RFC e parametri non passati

Postby gmassi » 9 June 2020, 12:08

Novità?
User avatar
gmassi
 
Posts: 9
Joined: 17 October 2019, 15:32

Re: Versione 20 Funzioni RFC e parametri non passati

Postby m.sirri » 10 June 2020, 8:21

Ho verificato ed effettivamente è una regressione delle 20.0.
Verrà corretto nella versione 20.5.

P.S. Per segnalare regressioni il canale migliore è l'HelpDesk.
User avatar
m.sirri
Pro Gamma
Pro Gamma
 
Posts: 8574
Joined: 30 September 2010, 17:01
Location: Ozzano dell'Emilia (BO)


Return to Tips & Tricks - Cloud

Who is online

Users browsing this forum: No registered users and 8 guests

cron