Settings and activity
8 results found
-
3 votes
An error occurred while saving the comment Peter supported this idea ·
-
15 votes
Peter supported this idea ·
-
1 vote
Peter shared this idea ·
-
2 votes
An error occurred while saving the comment Peter commented
- In the color section of a field source.
Sorry, I wanted to say:
- in the selection of the font color of the different fields in which this option is availablePeter shared this idea ·
-
Create new tag/label objects to help with data interpretation while they´re introducing or revising.
7 votesAn error occurred while saving the comment Peter commented
Hi, here is how I "solved" the suggestion that I made some time ago in: https://groups.google.com/forum/#!topic/mementodatabase/kVkPznHbvgM
you can see the sample video here:
https://www.youtube.com/watch?v=5XLRpw4M57UBasically I use a checkbox to show or hide an image that will serve as visual support when choosing the correct value of a dropbox field located just below.
Then I use the value of the field I´ve just selected in the checkbox to insert the corresponding image in the image field.Fields I used:
- title: I only use this text field as a tagText to show the name of the libray. Default value: ORDERS; Font: Bold,Red and bigger than the rest of the text.
- idOrder: Integer number. Default value: 0, autoincrement
- date: date field
- client: text field. Autocomplete
- Show Help boxModel: Checkbox field. Default value: No. I use this field to show/hide the visual help using dependencies with imageBoxModel.
- imageBoxModel: image field used as a tagImage field wich stores image help to fill the dropBox below. Dependecies of the field: Visible when the checkbox is checked. It will be shown by default with triggers. Name of the field property: hidden.
- boxModel: dropBox with values: BX - 2345DF, BXF - 0123, BX - 87562, BXG - 2356
- image: image field that will be filled with triggers with the selected box in the dropBox field boxModel. It will be the thumbnail. I hide this field while creating an entry using dependencies with the checkbox field, not allowing its visibility in all cases.The scripts to Show the Help while filling/updating the fild are...
Help while creating an Entry
----------------------------
Event type: Creating an entry
Phase: Opening an Entry Edit CardScript:
// To know the correct path on my device:
// I used a test image field and I have exported it to csv,
// then I looked at the csv the path it gave me.
var path = "file:///storage/emulated/0/mementoImages/Boxes.jpg";
entryDefault().set("imageBoxModel",path);Erase Help after creating an Entry
----------------------------------
Event type: Creating an entry
Phase: Before saving the EntryScript:
entry().set("imageBoxModel","");
Help while editing an Entry
---------------------------
Event type: Updating an entry
Phase: Opening an Entry Edit CardScript:
var path = "file:///storage/emulated/0/mementoImages/Boxes.jpg";
entry().set("imageBoxModel",path);Erase Help after editing an Entry
---------------------------------
Event type: Updating an entry
Phase: Before saving the EntryScript:
entry().set("imageBoxModel","");
The scripts to fill the image with the correct box while creating/editing an Entry are...
Fill image while creating an entry
----------------------------------
Event type: Creating an entry
Phase: Before saving the EntryScript:
var boxModel = entry().field("boxModel");
var pathBox1 = "file:///storage/emulated/0/mementoImages/BX-2345DF.jpg";
var pathBox2 = "file:///storage/emulated/0/mementoImages/BXF-0123.jpg";
var pathBox3 = "file:///storage/emulated/0/mementoImages/BX-87562.jpg";
var pathBox4 = "file:///storage/emulated/0/mementoImages/BXG-2356.jpg";
switch(boxModel) {
case('BX - 2345DF'):
entry().set("image",pathBox1);
break;
case('BXF - 0123'):
entry().set("image",pathBox2);
break;
case('BX - 87562'):
entry().set("image",pathBox3);
break;
case('BXG - 2356'):
entry().set("image",pathBox4);
break;
}Fill image while editing an entry
----------------------------------
Event type: Updating an entry
Phase: Before saving the EntryScript:
var boxModel = entry().field("boxModel");
var pathBox1 = "file:///storage/emulated/0/mementoImages/BX-2345DF.jpg";
var pathBox2 = "file:///storage/emulated/0/mementoImages/BXF-0123.jpg";
var pathBox3 = "file:///storage/emulated/0/mementoImages/BX-87562.jpg";
var pathBox4 = "file:///storage/emulated/0/mementoImages/BXG-2356.jpg";
switch(boxModel) {
case('BX - 2345DF'):
entry().set("image",pathBox1);
break;
case('BXF - 0123'):
entry().set("image",pathBox2);
break;
case('BX - 87562'):
entry().set("image",pathBox3);
break;
case('BXG - 2356'):
entry().set("image",pathBox4);
break;
}An error occurred while saving the comment Peter commented
Everyone knows that a picture is worth a thousand words.
The fact of being able to have an image of support when filling certain fields, would be of great help.
While the tag image object is not available, a way to achive something similar would be to add the property: "set default image" to the image fields.
The reality is that at the moment there is no such property and there is no tag image object, so the only thing we can do is ask the developer to include them in future updates.
But we can still do something. And it´s to use the "text field description" from a text field to describe in words and in the best possible way what a simple image could do. You could also give visibility to the text help using "dependencies of the field".
So, depending on whether or not you have marked a previous boolean checkbox, display or not the text help.
I hope this can help someone.Peter shared this idea ·
-
15 votes
Peter shared this idea ·
-
2 votes
Peter shared this idea ·
-
7 votes
Peter shared this idea ·
Scripts of the same type are executed in the order in which they were created. This forces you to create them in a certain order.