Is it possible to text of the labels on a form column? We want to change the label for Customer Reference just on SO301000 which I can do with SetDisplayName, but even the standard label does not fit the current column width. I would like to make the label a little longer and it would look better wrapped.
One thought to wrap the text is to insert a line break HTML tag in the display name. The only issue with this I found is I had to add a hidden label field below the field I wanted to wrap because it caused a layout issue with the field below it.
PXUIFieldAttribute.SetDisplayName<Location.taxRegistrationID>(cache, "Tax <br/> Registration");
Related
I have 2 radio tags, when selecting the answer "yes" the text tag appears. The problem is when I type any text in any of the two text fields, they are repeated, example: if I type "ok" in the first text field the second is automatically pre-filled with the value "ok" too, if I change the second text, the first is also changed automatically with the same value.
The two text fields are different in the database.
Print : https://ibb.co/MkTnkxY
That's a feature! To stop it, change the Data Label for one of the text fields so they no longer match each other.
Is there a way to change the font color and its background of a rich text field? The goal here is to get a type of color whenever a word is changed from a list.
For instance, I can have a table with two columns, where first column is related to a type of vehicle and the second it is related to type of combustible used. So, let's imagine that every time a vehicle uses gasoline, so its wording should be shown yellow text and the field background in black. On the other hand, if a vehicle uses electrical, its wording should be shown red and the field background in green...
I know that there is a command but I do not know how to use it for more than one value.
#Command([TextSetFontColor]; [Red])
Any help?
You can't change the font and color of the existing text in a rich text field with the Notes #formulas or #commands. There are some tricks you can do (e.g., multiple subforms containing the same field, with different backgrounds and fonts, and a computed subform formula, or maybe with multiple computed-for-display fields and hide-whens - but the text would not be editable that way) before the text is entered into the field. If you want to change the font of already-existing rich text, you'll probably need to use the Notes C or C++ APIs, the MIDAS Rich Text API from Genii software. I think the background will have to be done with computed subforms or hide-whens and computed-for-display fields (for non-editable rich text), no matter what.
I currently have a plot in its own tab to have a clean look, but I want to display a value overlayed on the plot. This value changes depending on inputs so I don't want to just put a frozen text box there. Any ideas? Thanks in advance.
If I get your question, you want to have dynamic content in a text box?
Create a new text box. Do not add text to it. Click the text box, then in the address bar, put the reference to the cell which contains the text. Example: =Sheet1!A1.
I have created a custom entity and I have some new fields created.
Ex: StudentCarrierTypeInformation (field name)
datatype: single line of text
I put this field on the form, and when I see this in the front end of the form, the field name is truncated.
It is like StudentCarrierTy. The rest of the name is truncated in the form.
I think its label has length only 20 I guess.
Is there a way to display the field name which is longer as I have above?
I was able to fix this myself. I navigated to the the form and went to the field properties and edited the same to 200 pixels.
You can set the Field label width from Section properties. Default is 115 (shown below) and Maximum is 250.
After making changes to 250, If label text is still hiding - then use the Field label position in Formatting tab of Section properties.
Tooltip will show full text in any case.
My program uses TableWrapLayout with numColumns set to 2. I then have the following code: (background colors are set to show you that the widgets aren't using the blank space).
Label label = toolkit.createLabel(container, "Resource Type":);
label.setLayoutData(new TableWrapData(TableWrapData.LEFT,TableWrapData.MIDDLE));
label.setBackground(DiagramSettings.NODE_BACKGROUND_COLOR);
resourceComboMenu = new Combo(container, SWT.READ_ONLY);
resourceComboMenu.setBackground(DiagramSettings.NODE_BACKGROUND_COLOR);
resourceComboMenu.setLayoutData(new TableWrapData(TableWrapData.LEFT,TableWrapData.MIDDLE));
However as you can see in the picture the combo box refuses to left align properly. But that I mean I want it to start right after the label, not have a bunch of blank space.
One workaround would be to put the row inside it's own Composite just like I do Resource Icon and Geolocation. But I feel like I shouldn't need to since the widgets on this row equals the number of columns set by the layout. I've created this workaround for now but would like to understand this TableWrapData behavior for the future.
Any insight would be helpful, thanks.
I pretty much answered my question in the question. The composite that contains everything in the picture had TableWrapData with columns set to 2. TableWrapData essentially draws a straight, vertical line between each column then makes sure widgets from one column don't cross it.
So to fix this (like I mentioned in my question) you simply make another composite with nested widgets (which in the case would be the resource type label and resourceComboMenu). I just didn't realize that is what you're supposed to do.