content-and-experience-toolkit icon indicating copy to clipboard operation
content-and-experience-toolkit copied to clipboard

Bug: Content Form Component: Content Form SDK methods not working.

Open JohnRSim opened this issue 4 years ago • 4 comments
trafficstars

OCEToolkit 21.1.3

Some methods like the assetpicker do not work from within the OCE toolkit developer environment. Are there plans to enable support for all of the contentForm methods?

<script src="/documents/static/gemini/api/content-form-sdk-1.0.js"></script>
/** Returns: {obj}
* 	id: "CONT089FA0AEEF894A3ABAC867B763B56CAF"
*	name: "Time.png"
*	type: "Image"
*	typeCategory: "DigitalAssetType"
**/
item.getFieldByName(fieldName).openAssetPicker().then((data) => {
	//..do something

// handle error
}).catch(function(error){
	console.error('Error:', error);
});

JohnRSim avatar Mar 31 '21 10:03 JohnRSim

openAssetPicker() method it to inform the webui to the asset picker dialog for selecting other assets as reference for the reference fields. This is not supported in toolkit environment as toolkit doesn't run on the webui.

VijRajan avatar Apr 29 '21 16:04 VijRajan

How do you use the toolkit to develop and test new content type forms that have the reference field where you are building custom interfaces and functionality?

Do I develop direct in an OCE environment and repromote and test forms directly on OCE and skip using the toolkit to develop with?

JohnRSim avatar Apr 29 '21 17:04 JohnRSim

@JohnRSim so far as I know right now that is the only way to do that kind of work. I've tried a few other things, but no worky.

jstortz avatar Apr 29 '21 21:04 jstortz

@jstortz "hold my beer.. " Launching production to develop on. :)

JohnRSim avatar May 03 '21 13:05 JohnRSim