1 Reply Latest reply on Jan 18, 2018 10:44 AM by praveenp RSS
    praveenp Explorer

    Display Data table in the Mashup



    We are sending the entries to the Data table with multiple user credentials. Now we have to display only respective user posted entries in the Mashup when the user logged in to the ThingWorx. Could you please help me in this.




      • Display Data table in the Mashup
        vladimirros Creator

        Hi Praveen,

        If you're using the QueryDataTableEntries, it also has a source input parameter.
        If you have the SourceType as User then you should have the usernames as the Source there, so you can bind to that property the current user.
        You can get the current user in a service containing the code
        "var result=principal;"
        if I remember correctly.
        Otherwise you'll just need to provide a wrapper service around this one.