Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms 5 › Movie script
- This topic has 7 replies, 3 voices, and was last updated 6 years, 2 months ago by
john cesta.
-
AuthorPosts
-
August 30, 2019 at 8:51 AM #36630
john cestaParticipantWill the movie script work on the iPad mini tap forms?
I wasn’t sure if it’s only for the Mac.
If it works on the mini I’ll putt with it.
August 30, 2019 at 9:02 AM #36631
john cestaParticipantI get this error
Movies: TypeError: undefined is not an object (evaluating ‘record.getFieldValue’), column:22, line:14
Movies: TypeError: undefined is not an object (evaluating ‘record.getFieldValue’), column:22, line:14I do have a barcode_field in my form
Does the barcode field need to have a valid barcode or can it search based on a movie name?
August 30, 2019 at 3:16 PM #36635
Sam MoffattParticipantThe error is indicating
recordisn’t set in the context it’s trying to be used. On the Mac I’ve seen this when running a form script when there isn’t a record available. I think on iOS I’ve seen if where if you run a form script from the record list, this will happen because there is no record. If you’re running a form script from an open record and seeing this on iOS then that would be a bug I think. I think on iOS I have also run into this when in the script editor in certain places as well.Do you mind sharing what you did and where you were at before triggering the error?
August 30, 2019 at 7:13 PM #36640
BrendanKeymasterMake sure you’ve selected a record first, then tap the action menu, then tap Run a Script from the record details view. The
recordobject should be available at that time.August 31, 2019 at 10:47 AM #36643
john cestaParticipantI guess I’m not sure how to use it.
Earlier I was opening a record with data in it. For that I received the no record error.
Now I opened a new record. When I run script it runs with no found data, no error either though.
So my guess is that it is searching for something but not finding anything so no results.
What I don’t know is how to tell the script what to look for. Do I need to have the barcode_field in the record filled in with a valid barcode for the movie I want to find? If so where do I find that barcode for the movie?
Can it use the title of the movie?
August 31, 2019 at 2:49 PM #36644
john cestaParticipantOk, since I’m sitting around waiting to see what Dorian the hurricane is going to do (this determines whether or not I cover the rest of the windows) I had some time and figured this puppy out.
My only question would be is there a way to lookup the movie using the name of the movie and not the barcode?
I use this to document the movies I’ve watched on tv or at the movies. I don’t really own them and have the bar codes.
Thanks…..
August 31, 2019 at 4:04 PM #36645
Sam MoffattParticipantYou’d have to use something like OMDb API which supports a search syntax but then you’d have to deal with potentially multiple results. You could use a prompter to ask which result is correct if more than one is returned or assume that a single return value is correct.
There was a similar use case for watched TV shows on the template exchange as well.
August 31, 2019 at 6:29 PM #36646
john cestaParticipantI used a dB on android and one of the features was you could create a dB based on the movie dbs and enter in the title of a movie and it would search the IMDb while you were typing and yes then you’d get a list of selections for the title.
You pick the one and it would populate the record with all the info including cast.
I think this could do this as well.
J
-
AuthorPosts
You must be logged in to reply to this topic.