question

Stain avatar image
0 Likes"
Stain asked Ben Wilson commented

Script does not make gcloud call!!!!

Hello everyone!

I would like to find out if my code has something written wrong. It should make a call to gcloud using the http.request method, but when I see the function's log, there is no sign of it.

Maybe I forgot some params? Let me know, thanks in advance!


  1. /**Custom Code*/
  2. Object current = ownerobject(c);
  3. Object item = param(1);
  4. int rownumber = param(2); //row number of the schedule/sequence table
  5.  
  6.  
  7. /*
  8. string sourceFile = modeldir() + "Data.csv";
  9.  
  10.  
  11. importtable(destinationTable, sourceFile, 0);
  12.  
  13.  
  14. //string token = destinationTable[0][1];
  15. print(destinationTable.cell(1,1));
  16. */
  17. Table destinationTable = Table("MyGlobalTable");
  18. string token = "123";
  19.  
  20.  
  21. Http.Request request;
  22. request.host = "host";
  23. request.method = Http.Method.Get;
  24. //request.data = "query=select * from Product";
  25. request.useSSL = 1;
  26. request.headers = "Content-Type: application/json\r\n ";
  27. //request.method = Http.Method.Post;
  28. Http.Response response = request.sendAndWait();
  29. //debug();
  30. //Table destinationTable = Table("MyGlobalTable");
  31. destinationTable [1][1] = response.value;
  32. print(response.data);
  33. print(response.value);
  34. print(request.headers);
FlexSim 24.1.1
using codecloudhttp request
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

0 Answers