Hello, 


I made a blank module htat reads a json reponse from a external api.

But as soon as I made another project which holds the ui then I cannot find this module again when I do manage dependencies,

What did I not understand when doing the web developer course and how to make this avaible. 


Regards, 


Roelof


Solution

Roelof Wobben wrote:

Hello, 


I made a blank module htat reads a json reponse from a external api.

But as soon as I made another project which holds the ui then I cannot find this module again when I do manage dependencies,

What did I not understand when doing the web developer course and how to make this avaible. 


Regards, 


Roelof


Hi Roelof,

I checked your espace. You can't directly access a consumed REST API from in another module.
1. create a server action.
2. set public
3. call your API in that action.
4. Now you can create a dependency from a different module.

With best regards,
F.Karatay

Solution

thanks, 


And hit another problem 


I have made a server action with a output parameter of a list 

But in the other module I cannot find or use that list 



Roelof Wobben wrote:

thanks, 


And hit another problem 


I have made a server action with a output parameter of a list 

But in the other module I cannot find or use that list 




Hi,

Can you check did you make that server action public or not?

You need to set property to public then only you can see in another modules.


Thanks,

Rajat Agrawal

it is public 


see here :  


I can see the server action but cannot reach the output parameter which is a list of text

Hi,

I think that you can get it if you set the property to Function.


oke, that seems to be working. 

But still I cannot get the data pulled in a table record :( 

maybe I have to make a entity of a painting instead and use a list of paintings instead of a list of text.

Time to experiment more.