The value for an attribute or a column are drawn from a set of values known as what? - rdbms

The value for an attribute or a column are drawn from a set of values known as what?
1) Tuples
2) Attributes
3) Domain
4) Column

The answer out of four options is 3) Domain.

attribute drawn from a set of values i.e domain (3. Domain - is the answer)
*if attributes drawn from atomic value domain called SIMPLE attributes.
eg: name: {myName} , age : {23}
*if attributes drawn from set of value domain called MULTIVALUED attributes.
eg: phone:{12334, 3242223, 234324}

Related

Defining variable to be used in few places

Is there a functionality in Tabluau to create a variable that can be used in few places by referring to its name? I'm asking because I need to prepare a dashboard and the data loaded and displayed on the dashboard can contain two different variables in column called value. So I would need to define such a 'variable' that would be filled with the type of value column (ex. type 1 or type 2) and use it as a axis name, in a tooltip etc. Of course, I'm trying to avoid a necessity to change all the axis names and tooltips manually.
In Tableau, they are called parameters. Please refer to following articles to learn more about this.
Parameter basics
Swapping Measures using parameter
I believe what you are asking is covered in link 2.

Form Assembly :: Concatenate fields in a Repeatable section

I have a Type and Phone number field in FormAssembly which is repeatable. When users add 2 entries like the one below,
User Entries:
Type: "Mobile" Number:6787867890
Type: "Landline" Number:7898878987
I need to concatenate the above entries to a single field like the one below using Calculation Fields
Expected Result:
Mobile:6787867890|Landline:7898878987
Any idea on how this can be achieved using Calculation fields in FormAssembly?
Just got this working by using 2 Calculation Fields. In the Repeatable section, I added a Calculation field(vEntries) which is hidden. vEntries will concatenate Type: "Mobile" Number:6787867890 to "Mobile:6787867890".
I declare another Calculation field(vFinalEntry) outside the repeatable section, this field is responsible for concatenating all the vEntries.
So when the user enters the second entry Type: "Landline" Number:7898878987, the vFinalEntry variable will have the value "Mobile:6787867890|Landline:7898878987".

How to access a cell value when the column has been defined with ag-grid expression/value getters?

If the ag-grid column definition has been defined with a value getter or if an expression has been defined for a cell the value gets displayed fine on the grid. However I was not able to find a way to access a value in a given cell if the cell is using cell expression/value getters. Was trying to access the data through api.forEachLeafNode, but it seems even the in memory model does not have this data. The only way I found was to export the data as CSV and then parse it using getDataAsCsv(params).
Is exporting the data the only way to access value of a column in a grid with a value getter?
Why does the In Memory model not have this data to access?
valueGetter is used during the rendering stage, it only computes when needed to render the cell. if the cell is never rendered (eg row is below what is currently visible) then the valueGetter is never executed. the result is never stored in the model, it is only passed to the cellRenderer.
so what you need to do to get the result of valueGetter is use api.getValue(colKey,rowNode)
colKey is the id of your column. this can be the column itself (if you got the column from the grid column api) or the column id. the column id is what you will probably want to use. the column id is assigned to the column in the following order 1) the colDef.colId if exists 2) the colDef.field if exists 3) generated if both colId and field are missing. so if you are using a valueGetter, you are probably not providing a field, so just provide a colId.
rowNode is the row in question. this is what you get when you use api.forEachLeafNode.
the api.getValue() method is pretty recent, i know it's in version 7 - so if missing just make sure you are v7 or above.

Filtering by custom dimension

I created a hit scoped custom dimension called "type". Also I created a view with include filter "type" = "Books". However in reports I see click hits with other dimension values (e.g., Books Sci-Fi). Do I have to add also exclude filter for view?
Essentially problem was that filter value have to be reg. exp. I changed it to ^Books$ and now hits with custom dimension "Books Sci-Fi" are excluded.

FormView tries to insert Null from Blank TextBoxes

I'm using a FormView control with the EntityFramework. I'm trying to add a new record, but every time I leave a text box blank, instead of inserting an empty string, it tries to insert a null.
How do I control this behavior so that it will use an empty string instead of a null?
you can handle this in the different levels of your application:
1) you can set default value in ItemCreated event handler and set default value there.
2) If you have permission to modify dblayer, you can set default value for column in db (or, maybe it is already set) and then set StoreGenerationPattern to Computed (look at, for example Entity Model - How to use Database's Default Column Values while inserting)