OK, I’m just checking out usage of my API. Its doing something odd
I call an API and get data. The data is definitely going into the database as can be seen here. This is all correct data.
And so I simply want to show some of these numbers. I tried a number of different ways.
But they all have the same result. This is printing 42 for each text field on safari
Or nothing on chrome
The data got sin the data base… not sure why I can’t print it out…
Here’s one possible explanation and it has nothing to do with your API:
Your page object has a data type. So this is a page that is expecting the unique id of a thing of that type.
Now you have hit the Preview button, haven’t you?
In your browser bar, you are seeing a URL that looks not so different from this:
That “sample:custom.something” part needs to be replaced with the unique ID of a real object of the correct type. (I can’t tell you what type that is – go look at your page object.)
The values you are trying to display are apparently fields on the page’s thing. Since Bubble does not have a thing to refer to, it makes up data for you.
The fact that all of the values are 42 is a reference to The Hitchhiker’s Guide to the Galaxy by Douglas Adams, wherein we learn that the number 42 is “the answer to the question of life, the universe, and everything.”
There may be other cases where Bubble will happily make up a value for you (that value being 42 for number types), and the basic problem here is that the Groups and Parent’s of things that we cannot see fully from your screenshot are basically just undefined.
Looks like you got it… here is the address
I;m confused as to how to fix this… On index page, I give it a type of content, but other than that, I am sure of how to correct this issue. Oddly, I didn’t have this issue on another site I made.
Put the uid of a masternode where I showed you. Alternatively, add a source to the page that returns a masternode.
My “thing” is a divisystem, which has information about masternodes, not any particular one, so I am probably getting confused about what you mean. So they do have Unique IDs that bubble is applying to them.
Ah, So, you think I should put the Uniqe ID of the current DiviSystem somewhere on the page. If you showed me this I forgot where
If you mean to put an owner UID in with a DiviStem thing, I’m trying not to have logins (especially after all the ridicule I got for attaching all this stuff to a user type just to make stuff like this easier)
As for somehow getting the index to associate the new DiviSystem with the index… I tried… Here is where on the index I tell it that a DiviSystem is what the page is about
And here is how I create a new on upon a page load
Not sure how to link this specific new one to the index page
Oh my Gorsh, I got it. Seems wonky, but it worked. In the group, as a data source, I did a search in the DiviSystems filtering for “user=Current User”
I got an error saying I was getting a list, so I chose the first item. It worked, but I still dont get why I got a list and needed to choose one.
But it worked
“Do a search for” is always considered a list, so you need to typically say “first item”, even if you know it will only return one item based on the search criteria.
Thanks so much. This is the best way to link the newly created thing to the page?
aaaand I fooled myself. It was only sort of working in that it was picking one of the divisystems in the list but not the latest one.
I also notice that since I am not creating new users, “user=Current User” is a blank field.
I just want to point at the newest create DiviSystem. I cant seem to search the list of DiviSystems for the highest UID.
Now I tried to search a list, user=current user, sorted by UID, descending, first item…no luck. I can’t seem to win here. I’m at another point where I feel that this shouldn’t be so elusive. I created a thing, why is it so hard to just the newly created thing?
Oh man, now I think I got it. No user.
Search for DiviSystem, sorted by UID, descending, first item