Emptying a collection which has no unique IDs

196 views
Skip to first unread message

onei...@gmail.com

unread,
Aug 28, 2014, 10:18:01 AM8/28/14
to suppor...@runmyprocess.com
Hi

I stupidly created a collection with 26 rows, but the records have no unique ID.

How can I easily empty this collection?

Gareth Thiveux

unread,
Aug 28, 2014, 10:33:37 AM8/28/14
to suppor...@runmyprocess.com
Hi Jamie,

In order to drop the whole content of a collection in Javascript, you just need to use an empty pattern :


function delete_ok(result) {
alert("ok " + JSON.stringify(result));
}

function delete_ko(result) {
alert("ko " + JSON.stringify(result));
}

var my_pattern = {};

col_mydata.removeCallback(my_pattern,delete_ok,delete_ko);


Regards,

Customer Solutions Engineer
 Fujitsu RunMyProcess
3 rue de Gramont, 75002 Paris - France

     


Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/0ff6ab62-a366-49ca-ac11-b235c8f97952%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

onei...@gmail.com

unread,
Aug 28, 2014, 10:54:26 AM8/28/14
to suppor...@runmyprocess.com
Perfect... thankyou :)
Reply all
Reply to author
Forward
0 new messages