Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JohnRSim opened this issue Mar 31, 2021 · 4 comments
Open

Comments

@JohnRSim
Copy link

JohnRSim commented Mar 31, 2021

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 JohnRSim changed the title Content Form Component: Content Form SDK methods not working. Bug: Content Form Component: Content Form SDK methods not working. Mar 31, 2021
@VijRajan
Copy link

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.

@JohnRSim
Copy link
Author

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?

@jstortz
Copy link

jstortz commented Apr 29, 2021

@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.

@JohnRSim
Copy link
Author

JohnRSim commented May 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants