I have a Firebase project with 2 mobile apps:
FriendlyChat example from Firebase/Google (messages) - created first
Grocery Items list (grocery-items) - trying to create second
You can see the messages node already there with some test messages inside.
But when I try to add a child to the appId node, I give it a name "grocery-items" and I click on ADD, but the node does not get added. It just disappears.
Why can't I add the grocery-items node?
The Firebase Database is a key-value store. It stores the values of keys at paths in the tree. But it only stores keys when they have an actual value. If there is no value for a key/path, it is immediately deleted.
So if you click the + button, then enter a key and click the Add button, it will delete the first key that you entered because it doesn't have a value.
What you instead should do depends on what you want to accomplish.
To add a single key/value pair:
click the +
enter a key/Name
enter a Value
click Add
If you want to add a JSON snippet/tree:
click the +
enter a key/Name
click the + next to the (empty) Value
enter a key/Name for the child
enter a Value for the child
click Add
Related
I am trying to delete records via GUI. I have a text input in my section mapped with property (.EID) which intakes employee ID (for example 1) and when i click a button 'delete' that particular record should be deleted from DB. I have written an activity that successfully deletes.
But I want to display a message if the entered employee ID is not present in the table. For example if I have already deleted record 1 and the user again tries to delete record 1 it should display a message saying "employee doesn't exist, please enter existing ID". I have used obj-open->obj-delete->commit to delete the records.
Please help me how to achieve this.
I have attached screenshot of my GUI, for example i have already deleted record no 2, so when user again enters 2 and clicks on delete button it should display a message saying "no such user".
You can launch a local action(flow action) on the delete button.
In the pre-processing of the flow action call one activity. Pass the employee id as parameter to the activity.
In the activity do obj-browse on the table and add filter on employeeid column.
Store the count of obj-browse in a property. If the count of the obj-browse is greater than 0 then delete the record.
The section of flow action will display 2 messages based on when condition. One message will become active when count is greater than zero which will display Account deleted and another message will get active when count is zero which will display account does not exist.
I am using Google App Maker with Cloud SQL to build an asset tracking database.
I have a couple tables with relations:
Asset List (Many to One with locations)
Locations (Many to One with Districts)
Districts (Many to One with Areas)
The issues is when populating new related location fields in an data entry form is that several districts may have locations with the same name. When using the standard drop down the same values appear and there is no way for the user to know which district the location is associated with.
Example: On the asset entry form drop down locations show:
- Shop
- Crew 1
- Crew 2
- Shop
- Crew 1
- External Vendor
I have 2 pages:
Assets - Datasource: Assets table
Entry form Datasource:inherited(assets) to enter new assets
Table View Datasource:Inherited(assets) to see asset that get entered )no edit)
Locations Pop-up
This seems to work as expected basically forms to navigate to correct Location and store it in a text box and a button with the On_Click property to send the textbox value to the data entry form on assets (not working) I can pass the value to a widget but can't figure out how to save it to the actual data source.
Currently using the location in the text box on this form should i be using Id?
I created a pop-up form which lets the user navigate to the correct location record ID by filtering on district. I am having trouble understanding how to actually write it back to the correct location field on the asset entry form. I am new to Java Script/Apps Script so the meaning of all the properties and how to use them is giving me trouble.
I tried setting a text box named SetLocation in the entry form and setting the value property to
#datasource.item.Location.Location
Then in the popup I set the button on_click to
app.pages.Assets.descendants.SetLocation.value =
widget.parent.descendants.PassLocation.value;
Pass Location is the name of the textbox on the popup where the correct location is stored.
Some suggestions to consider. In your popup set a dynamic property, call it 'CreateDatasource' or whatever suits your needs.
In your assets page form where you navigate to your popup (lets say it's a button that opens the popup from your form) put the following code:
var popup = app.popups.YourPopup;
popup.properties.CreateDatasource = widget.datasource;
popup.visible = true;
Lets say your popup content datasource is set to Locations, and your popup has some inputs that filter your locations and then there is a table that displays your filtered results. In this table you would select the appropriate location row and then your popup has a button that passes the location back to your asset form, with code like this:
widget.root.properties.CreateDatasource.item.Location = widget.datasource.item; //this would set the relation only assuming your asset relation end to locations is named 'Location'
widget.root.visible = false;
This would work assuming everything is set up correctly in your relations.
I have a Firebase project with 2 mobile apps:
FriendlyChat example from Firebase/Google (messages) - created first
Grocery Items list (grocery-items) - trying to create second
You can see the messages node already there with some test messages inside.
But when I try to add a child to the appId node, I give it a name "grocery-items" and I click on ADD, but the node does not get added. It just disappears.
Why can't I add the grocery-items node?
The Firebase Database is a key-value store. It stores the values of keys at paths in the tree. But it only stores keys when they have an actual value. If there is no value for a key/path, it is immediately deleted.
So if you click the + button, then enter a key and click the Add button, it will delete the first key that you entered because it doesn't have a value.
What you instead should do depends on what you want to accomplish.
To add a single key/value pair:
click the +
enter a key/Name
enter a Value
click Add
If you want to add a JSON snippet/tree:
click the +
enter a key/Name
click the + next to the (empty) Value
enter a key/Name for the child
enter a Value for the child
click Add
I have a column "full name" in a list and I want to configure drill down for it so that when I click on a particular user's full name, it displays all the bio data of that user from another table.
My requirement is that at the front end, it should show the full names of the users, but when I click on the user's name, it should pass E-mail address of the user for the drill down.
Please need help for doing it.
I'm going to assume you are using a list object. the instructions for a crosstab would be slightly different:
Add the item you want to pass to the drill-through target to your query
In the report page, select the list
Click on the ellipses (...) in the 'Properties' property of the list object
Check the box next to the data item that you added to the query in step 1 and click 'OK'
When you define the drill-through parameters, select 'Pass the data item value' for the method and the data item added to the query in step 1 as the Value.
I'm trying to implement an update procedure like the one in this blog post (via extra entity and workflow updating account, triggered when the new entity is being created)
http://www.powerobjects.com/2013/08/01/updating-records-in-microsoft-dynamics-crm/
In my list and the new entity "Account Update" I have 3 fields for the full name of a company (name, name_2, name_3).
In my workflow I want to put these 3 together and combine their values in the Account field "Company" (the company's name).
In the process I tried to insert them via the "Form Assistant" and in the field "Company" I now have the following entry:
{Name(Account Update);Name_2(Account Update);Name_3(Account Update)}
but it doesn't seem to work. After my import and update of the account (which ends successful) the value in "Company" is only the value of the first name field.
Is it possible to combine values?
What exactly does it do, when I choose more than one field in the Form Assistant and say OK?
So at last I figured out how to archive it.
With the "Form Assistant" you can combine or add multiple field values to one new field but it is a bit tricky.
The value in the process update the properies have to look like this:
{Name(Account Update)} {Name_2(Account Update)} {Name_3(Account Update)}
BUT
It does not work if you enter this as text, you have to add the fields one after another so that they are recognized as fields (and marked yellow).
Click into the field (here: "Company").
Then choose the first field in the Form Assistant. Click "Add", choose it in the list below and click "OK". Now the field is in the field "Company".
Now go behind the end of the text in the field make a space and then choose and add the second field (clear the list in the Form Assistant before so that now only the second field is in the list)
So it's right if it looks like:
{Name(Account Update)} {Name_2(Account Update)}
Wrong if looks like following (happens when you keep the first field in the list before adding the second with "OK")
{Name(Account Update);Name_2(Account Update)}