How i can show default values of each column in ERD that generated by powerdesiner - erd

I want to show default value of each column in my ERD.How I can do that ?
I don't see something about it in content tab in symbol format windows. Only in preview tab in table properties, I can see default values for columns in generated SQL. the Power designer version is 16.6.

You can modify the attributes displayed for columns under Tools > Display Preferences > Table > Advanced > Columns > List columns:
Use Select > (Select Attributes) Default Value to add the default value.
This list of attributes does not provide long text attribute, like Description. For these, you might be able to work a solution using calculated attributes.

Related

Column width doesn't automatically adjust for certain types of data

I'm currently building a dashboard with flexdashboard and want to present one tab on my dashboard as showing the raw data organised into a data table using the datatable function in R.
When the dashboard generates, the rows have a huge height due to some large character entries in that string. E.g. certain ids in the format "xxxxxx-xxxx-xxxx-xxxxxx". It doesn't present them like this however, they are normally in the row presented as:
xxxxxx-
xxxx-
xxxx-
xxxxxx
creating the huge height.
A similar thing happens with date formats in the YYYY-MM-DD HH:MM:SS format
however the issue doesn't occur when using very long character strings without any "-" in it.
e.g. the column width will adjust properly for "xxxxxxxxxxxxxxxxxxxxxxx"
I had a look through stackoverflow and couldn't find anything similar, questions would mostly be around autoWidth not being set to true. And as mentioned column width adjusts automatically for certain types of character strings just not ones with "-" in it.
datatable(data1,
rownames=T,
filter ="top",
options=list(pageLength=100,
autoWidth=T,
scrollX=T))
You can disable the wrapping by using the class nowrap
DT::datatable(
class = "display nowrap",
extensions = c('Buttons','Scroller'),
...…

how to split and change the font style of a crystal report element?

we are having a report generated using crystal report While generating we have a request to have a checkbox with a list of items.
The checkbox is only available in the Wingdings font.
Since we are using Arial font for the list items we can not change the font of the formula field through which we are showing the list.
Eg:
[] task1
[x] task2
we need to split each list item and replace the square brackets with checkbox form the wingdings font.
how can we create a formula for this in crystal report?
I found a way
Create a formula with this code:
stringvar MYARRAY:= Replace ({Notes1},"[]" , '< font face = "wingdings" >'&chr(254)&'< /font>');
stringVar MYARRAY1 := ' '+Replace (MYARRAY,"|" ,' < br> );
MYARRAY1;
Drag and drop this field on the report > right-click the field > Format Field > Paragraph tab > Under "Text Interpretation" select "HTML Text".
Without using HTML or RTF Text interpretation, Crystal Reports can't display two fonts in one formula field, but it is possible with a Text Object.
Create two formulas, one with the checkmark and one with the item-text.
Drag & drop the formula-fields into an empty text object.
Now you can format the two formula fields independently of each other but inside the same field.

Define global variables

I'm trying to test some algorithms in LibreOffice Calc and I would like to have some global variables visible in all cell/sheets. I searched the Internet and all the posts I have seen are so cryptic and verbose!
What are some simple instructions of how can I do that?
Go to Sheet → Named Ranges and Expressions → Define. Set name to "MyVar1" and expression to 5. Or for strings, use quotes as in "foo". Then press Add.
Now enter =MyVar1 * 2 in a cell.
One strategy is to save the global variables you need on a sheet:
Select the cell you want to reference in a calculation and type a variable name into the 'Name Box' in the top left where it normally says the Cell Column Row.
Elsewhere in your project you can reference the variable name from the previous step:
Using user-defined functions should be the most flexible solution to define constants. In the following, I assume the current Calc spreadsheet file is named test1.ods. Replace it with the real file name in the following steps:
In Calc, open menu Tools → Macros → Organize Macros → LibreOffice Basic:
At the left, select the current document test1.ods, and click New...:
Click OK (Module1 is OK).
Now, the Basic IDE should appear:
Below End Sub, enter the following BASIC code:
Function Var1()
Var1 = "foo"
End Function
Function Var2()
Var2 = 42
End Function
The IDE should look as follows:
[![Enter image description here][5]][5]
Hit Ctrl + S to save.
This way, you've defined two global constants (to be precise: two custom functions that return a constant value). Now, we will use them in your spreadsheet. Switch to the LibreOffice Calc's main window with file test1.ods, select an empty cell, and enter the following formula:
=Var1()
LibreOffice will display the return value of your custom Var1() formula, a simple string. If your constant is a number, you can use it for calculations. Select another empty cell, and enter:
=Var2() * 2
LibreOffice will display the result 84.

Get data attributes with Nokogiri

I'm scraping a site that has a number of divs with the same ".pane" class and same "data-pane" data attributes.
input = doc.css('.pane[data-pane]')
How do I filter or select from the above to get the div which has a "data-pane" attribute equal to a specific value?
You can just treat it as you would any other attribute with the usual CSS syntax:
input = doc.css('.pane[data-pane="the value"]')

How to get text rendered in the cells?

How can I get text rendered in the cells? I have tried the following :
[1] $(gridId).jqxGrid('getcellvaluebyid', rowID, columnFields[j])
[2] $(gridId).jqxGrid('getcelltextbyid', rowID, columnFields[j])
However, I only get the actual values of the cells like flags and status codes instead of the actual flag names and status names rendered on the specific cell (using cells renderer).
Please help.
Have you tried by creating an Array variable and caching the cellsrenderer result using that Array. After that you can access the rendered cell content using your Array and your array keys.

Resources