Workshop Custom Iframe Widget Bidrectional Communication Fails

After I added to my React Widget the new: temporaryObjectSetRid type:
As shown in the documentation:

  {
    // Only compatible with https://www.npmjs.com/package/@osdk/client > 2.0
    fieldId: "temporaryObjectSetRidField", 
    field: {
      type: "single", 
      label: "Object set field (via temporary object set rid)", 
      fieldValue: {
        type: "inputOutput", 
        variableType: {
          type: "temporaryObjectSetRid", 
        }
      }
    }
  },

My Workshop Applikation does not seem to detect the variables anymore, I get the following error:

Should this feature already working in Workshop?

Second question, what is the correct API call to load the ObjectSet from a temporaryObjectSetRid?

Thank you

Hi @emmanuel1 Thanks for using this brand new feature on the bidirectional iframe - there was a bug but now this should be working in Workshop. Please let me know if otherwise.

Additionally note that we are updating this docs for this still but you should only use field type temporaryObjectSetRid if you are on @osdk/client version >= 2.0 as starting from that version onwards they have createAndFetchTempObjSetRid to create a temporaryObjectSetRid from an object set when you are calling .setLoadedValue() on a temporaryObjectSetRid to broadcast the value to Workshop, and hydrateObjectSetFromRid to load Ontology objects from a given temporaryObjectSetRid value.

Let me know if you have any other questions/comments.

1 Like