cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

CurrentSessionInfo Link Issue?

Newbie

CurrentSessionInfo Link Issue?

I created a service to return the Organizational units a logged in user is a member of.

I tested my service in composer and verified everything works correctly.

However, when I attempt to use the services in my mashup without success.  Any suggestions as to what I am doing wrong?

19 REPLIES 19
Highlighted

Re: CurrentSessionInfo Link Issue?

Hi Paul,

Are you using the same user in composer and Mashup? There could be a difference in access rights to the service.

Are there any errors in the application/script logs?

More detailed steps on what you are doing on Mashup would be helpful to answer your query.

Thanks,

Ankit Gupta

Highlighted

Re: CurrentSessionInfo Link Issue?

Hi Ankit,

I have tried multiple users to test the mashup including ones that have administrative access.

I can use the test service button on my thing and get the correct values to be displayed in the result.  However, I cannot get the service to populate values of a grid in a mashup (regardless of user).  I am not sure if I am not passing in the correct information to have my service return a value.  There are no errors or warnings displayed in the application monitor when I test my mashup.

I am using the default snippet to get the organizational units of the logged in user.

// result: INFOTABLE dataShape: EntityList

var result = Resources["CurrentSessionInfo"].GetCurrentUserOrganizationalUnits();

The output is an info table.

Highlighted

Re: CurrentSessionInfo Link Issue?

Paul, can you try enabling/ checking 'ShowAllColumns' on your Grid widget's properties (the bottom left pane)? Since your service result is dynamic, you might get a blank grid (if that's what you are seeing on your Mashup). Checking ShowAllColumns would make it render/ display all data.

Highlighted

Re: CurrentSessionInfo Link Issue?

Aanjan,

I will double check this, however, I am not currently restricting the columns.  All I did was link all data returned from the service to the grid as this is just an attempt to get everything working.

Highlighted

Re: CurrentSessionInfo Link Issue?

Alright, please do check that and let me know. If the grid, in the Mashup Builder stage, says 'Must Be Bound To Data' even after binding data, it would not display any columns unless you select 'ShowAllColumns'.

Highlighted

Re: CurrentSessionInfo Link Issue?

I have tried calling the service at mashupload, and when a button is clicked. 

My service does not have an input so I do not have any links going into it.  Could this be my issue?  If so; how do I pass in the currentsessioninfo?

Highlighted

Re: CurrentSessionInfo Link Issue?

It usually does not take inputs; it would just pick up whatever user is currently logged in. Does checking 'ShowAllColumns' not display them either?

Highlighted

Re: CurrentSessionInfo Link Issue?

I double checked.  I am showing all of the columns.

The grids on the mashup have two columns (shown below)

Highlighted

Re: CurrentSessionInfo Link Issue?

Can you try running this as an Admin? Can you click on the Show/Hide Log button when you're viewing your Mashup to see if there are any messages there?

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________