Change a SmartObject Property


Badge +1

I created a list in SharePoint 2013 with a yes/no (checkbox) column and then created a Smartobject from the list. Now I need to convert the yes/no (checkbox) column to a choice column in SharePoint. Once I do that, how do I convert the yes/no property in the Smartobject to a dropdown list in the Smartobject / Smartform? Or, I could create a new column in the SharePoint list, but how would I update the Smartobject so that it sees the new property?


3 replies

Badge +2

After editing the SMO, you can update it by


 


>> Open the smartobject tester


>> Find the correct service service


>> Righ click refresh service instance


>> Create new smartobject


>> Change name of new smartobject to the same as the old smartobject


>> Click get exisitng GUID


>> Change catagory to catagory as the old smartobject


>> it will warn you replace exisitng smartobject hit yes.

Badge +4

Hi SharePointMadam,


 


I just want to clarify the following:


 


 Is the property still a yes/no but the control needs to be a drop down?


If so the you can just go to your view and try the following:


 


>Click edit


> Got to the control {the check box} and click


>On the toolbar locate {change control} usually being the third last icon


>Click it and a screen will popup


>Locate drop-down list and click ok.


>The control will change to a dropdown with the yes/no values.


 


HTH


 


Regards


Quintin

Userlevel 4
Badge +13

Hi


 


As I understand you want to update the smartobject in some way so that it sees that the sharepoint list has been changed from a checkbox data type to a choice data type, unfortuanitly the smartobject will detect that the sharepoint list is not longer a checkbox column but it would not change itself because of this. You can however change the smartobjects data type manually by follwing these steps:


 


1. Open K2 Designer and navigate to the relevant smartobject.


(IF the smartobject cannot be located in designer, I suggest that you create a service instance and then create the smartobject from there using the Smartobject tester tool)


2. Now open the smartobject in edit mode and change the data type to dropdown


3. Save and Finish


 


I hope I understood the issue, if not please notify me via this post.


 


Kind Regards


Raymond


 


 

Reply