Academic Certification POC
#11
Thanks!!  I don't know where to start with the transactions.  I'm not experienced with javascript.  All the examples I can find are for financial applications.  If an institute wants to issue an award to a student, what would the code look like?

Thanks so much for your persisting guidance!!!
Reply
#12
For the transactions I need:
transfer a certificate to a student
rescind a transferred award, in case of academic offence and the like

Do I need any other transactions?
Reply
#13
Hi, guys, I have been trying my hardest to get my head around the transactions and have made a small step forward:-)

I have my asset (award) with a Student participant who will be the owner of the award and an issuer 'Institution' participant.

I'm trying to create a transaction (IssueAward) that changes the student owner, but I get an error "expected a Relationship"

Can you help me understand why I get that message and possible steps to resolve it??

Thanks!


Attached Files Thumbnail(s)
   

.zip   arm (1).zip (Size: 3.13 KB / Downloads: 17)
Reply
#14
On line 60 of the model file,
Code:
o String newOwner

Should be:
Code:
--> Student newOwner
Reply
#15
Thank you!! That fixed it but threw another error. I have the Event setup like this:
event newEvent {
--> Award asset
o String oldValue
o String newValue
}
When I run the transaction, I get that t: Model violation in instance XXX oldValue has value XXX expected type String. I think that the owner property is not held as a string? Which data type is owner? The oldValue is the id of a student participant.

Thanks again
Reply
#16
Owner is a relationship. No data type. But you should be able to pull studentId. I haven't worked with events too much so I may be wrong.
Reply
#17
I deleted the event block and the transaction works now :-)
Reply
#18
(09-08-2018, 12:53 AM)kevin Wrote: I deleted the event block and the transaction works now :-)
Awesome! That's good to hear.
Reply
#19
Is it possible to enable a participant, to grant access to another participant to view an asset owned by the first participant?

For instance, If a student is given an award, and then a potential employer wanted to confirm the award is real.

Does that make sense? If it is possible where to start??

Thanks!
Reply
#20
Tough question....no takers?
Reply