Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 11th, 2024, 11:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to get how many objects's been dropped in a question
PostPosted: May 22nd, 2014, 2:15 pm 
Offline

Joined: January 28th, 2014, 4:38 pm
Posts: 54
Location: Czech Republic
Opus: OpusPro 9.75 - HTML5 exports, Evolution
OS: Win 7 x64 CZ
System: FUJITSU
I'm using drag and drop objects in a question (blank question: Drag and Drop Multiple, no limit for retries). I don't want to use Submit button after placing all drag objects. Instead I'd like to check what is my score after placing each object (only correctly placed answers are allowed). When you reach 100% it means all objects has been placed correctly. But how to determine this moment?
I can't use Reset and then Confirm question because it resets previously dropped objects.

Is there a value which is updated with every Set User Answer As when object is correctly dropped?

Regards,
Ota


For this message ovo has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: How to get how many objects's been dropped in a question
PostPosted: May 30th, 2014, 12:47 am 
Offline

Joined: October 25th, 2004, 3:03 pm
Posts: 540
Location: Tyalgum Creek. Australia
Opus: Opus Pro Latest version 9.02 Build 16458
OS: Won 10
System: Asus laptop Intel Core i5 8 gig ram, big monitor, reading glasses
Hi Ota

You did not tell us what kind of publication you are working on, for example, HTML or Opus Pro etc so this reply may not help you. Hopefully, it does though.

You will need to modify the question actions to achieve what you want to do.

I would try attaching a variable to each object that is to be dropped. When the object is dropped, icrement that variable by 1 and then use the If action to test. For example, let's suppose you set a variable to each object to be dropped to add 1 to a variable that initially is set to zero. You could then use the if action to test the value of the variable after each opbject is dropped. When the variable count reaches the target number, you could trigger a nhiddel 100% sign object or something like that.

It will be tricky but with time and experimentation, quite achievable.

Just be aware that the question wizard (for want of a better word) contains, as far as I'm aware, some hardwired programming in the question that you can't modify or get at.

You will find SetUserAnswerAs in the help file. As much as I don't really 'get' the SetUserAnswerAs. probably because I haven't yet played around with it, I don't think there is a value that is updated.

Hope this helps

Cheers

Graham

_________________
Too much coffee can result in frequent toilet breaks!


For this message Graham Baglin has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: How to get how many objects's been dropped in a question
PostPosted: May 30th, 2014, 2:31 pm 
Offline

Joined: January 28th, 2014, 4:38 pm
Posts: 54
Location: Czech Republic
Opus: OpusPro 9.75 - HTML5 exports, Evolution
OS: Win 7 x64 CZ
System: FUJITSU
Hi Graham,
thank you for your suggestions. I develop for HTML as noted in my profile so sometimes I forget to give this information to the post, sorry.

I had tried exactly what you suggested. Count variables. It works perfectly in Preview but not in HTML. It always throws an error on line 7 of Opus.js.

Finally I have created my own script for counting and evaluating using an external Javascript. It works ok but not perfect solution for people who are not programmers - like my colleagues - thats why I posted it here in Basic not Advanced part of the message board. But my solution is advanced, again :-(.

Regards,
Ota


You do not have the required permissions to view the files attached to this post.


For this message ovo has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group