-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing return of fields #10
Comments
Quite strange, what's the data type for Do you have the <metadata>
<field-definition auto-enter="yes" four-digit-year="no" global="no" max-repeat="1" name="status" not-empty="no" numeric-only="no" result="text" time-of-day="no" type="normal"/>
</metadata> |
The metadata looks like this:
I have been trying out different data types in the model, but with no change |
Your data type for
string :supplier_id, fm_name: '_id', identity: true
integer :country_id, fm_name: '_id_Country'
string :shortname, fm_class: 'ShortName'
number :workingdays, fm_class: 'DaysWorkdaysInWeek' Other than that, you can write some debug statement at this file: |
Thanks for your help so far! So I made the coerce function output both the value and the datatype, and it returns it just fine:
I've changed the data type to number and integer with no effect. |
Are you able to provide me with the whole XML file with your private information removed so that I can put it through the spec to run some test? |
Here you go:
|
Oh FileMaker 16. I do not have it. I only have FM 15. I may need to upgrade first. Probably something changed between the version. I will test it regardless and let you know the outcome. |
Want me to create a user for you on our system for testing purposes? |
Oh better not for sec and privacy concern. The XML file should be enough :) |
I'm so sorry, but this is a typo on my end. In the model, I'v managed to type Sorry again for the trouble caused! Andreas |
Oooo.. great |
I have this really strange issue that I can't figure out on my own:
When I pull data from the XML-interface of FM directly on one layout, The result is like this:
My model for that looks (partially) like this:
But when I call it, it says nil for the one field (and others that I try to pull like that when I have been playing around to figure it out):
#<Supplier:0x007fb2d0d711a0 @new_record=false, @attributes={"supplier_id"=>"SU000005", "country_id"=>"259.0", "shortname"=>"ANS", "workingdays"=>nil}, @relations={}, @record_id="6", @mod_id="1480", @portals={}>
I only have this problem for one model. Any pointers on what could cause this?
Andreas
The text was updated successfully, but these errors were encountered: