Skip to main content
added 5 characters in body
Source Link
Appeiron
  • 167
  • 1
  • 6

I'm using sp.js and I'm confused, how to update property of property? For example I have:

Item: { 
    Title, 
    Image: { 
        Url: 'xxx', 
        'Description'Description: 'xxx' 
    }
} 

I've tried .load(Item) and then image = Item.get_item('Image') but image.set_item('Url', 'smthnew') and .update() fails...

How to actually update Image.Url via .update()?

Thanks a lot!

I'm using sp.js and I'm confused, how to update property of property? For example I have:

Item: { 
    Title, 
    Image: { 
        Url: 'xxx', 
        'Description' 
    }
} 

I've tried .load(Item) and then image = Item.get_item('Image') but image.set_item('Url', 'smthnew') and .update() fails...

How to actually update Image.Url via .update()?

Thanks a lot!

I'm using sp.js and I'm confused, how to update property of property? For example I have:

Item: { 
    Title, 
    Image: { 
        Url: 'xxx', 
        Description: 'xxx' 
    }
} 

I've tried .load(Item) and then image = Item.get_item('Image') but image.set_item('Url', 'smthnew') and .update() fails...

How to actually update Image.Url via .update()?

Thanks a lot!

Source Link
Appeiron
  • 167
  • 1
  • 6

Update property of property using sp.js

I'm using sp.js and I'm confused, how to update property of property? For example I have:

Item: { 
    Title, 
    Image: { 
        Url: 'xxx', 
        'Description' 
    }
} 

I've tried .load(Item) and then image = Item.get_item('Image') but image.set_item('Url', 'smthnew') and .update() fails...

How to actually update Image.Url via .update()?

Thanks a lot!