Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Saving a serial object using Result set

Question
phillip jack · Feb 2, 2022

Saving a serial object using Result set

Hi Folks,

I created a persistent class as below 

Class myclass.DataBase Extends %Persistent
{

Property ID As %String;

Property Skill As list Of myclass.SerialTablelist;
}

and Created another Serial class as 

Class myclass.SerialTablelist Extends %SerialObject
{

Property PSkill As %String;

Property OSkill As %String;
}

Now I will save the id as below

do rs.Prepare("Insert into myclass.DataBase(ID)VALUES(?)")
do rs.Execute(ID)

 

I am facing issue with the AS LIST OF 

Could any one guide me how to save the Skill (PSkill ,OSkill ) using resultset (I am able to )

#Databases #InterSystems Business Solutions and Architectures #ObjectScript #Caché

Source URL:https://community.intersystems.com/post/saving-serial-object-using-result-set