Display “tooltip” Help bubble on widgets like TextField in Vaadin - hover

I want to display a floating bubble with online-help info when the user hovers the mouse pointer, like a tooltip seen on a button-tool-bar in other apps.
I know that we can pass an initial value when setting up a widget such as TextField. And I see on this Question that we can provide an initial prompt to the user, a placeholder until the user enters a value into that field. But I want to provide Help assistance whether or not the user has entered a value.

Description property
Vaadin 7
Call the getter/setter methods for a property on most widgets called Description: getDescription and setDescription
Vaadin 8
Call the getter/setter methods for a property on most widgets called Description: getDescription and setDescription
See the Sampler page for TextField. The Description property is empty initially there. Click the gear icon, and enter text in the Description field and press Enter/Return. For example:
Vaadin 10 (Vaadin Flow)
Vaadin Flow as of 10.0.1 lacks the hovering help feature. Such a feature is being considered.

Related

Can't set step property in input type number iside alert

I have an input type number inside an Ionic v4 alert, the problem is that I can't set step property since It's not recognised, is there any workaround or solution?
If you have advanced alert needs you might consider making a modal form instead.
The alert doesn't have many configuration options.
I don't see the value in trying to recreate a full modal tutorial here. This seems to cover it quite well.
But the high level overview is that instead of using an alert you create what is basically a new page, but it is loaded in on top of the existing page and you can pass data in and out of it.

Where is the Form/Report `Menu` event (that relates to OnMenu) defined in Access?

Access Forms and Reports support an OnMenu property, that follows the naming convention and behavior of other Form/Report event properties like OnLoad (where assigning the OnLoad property a value of [Event Procedure] will cause the Load event to be handled by the code-behind with signature Private Sub Report_Load()).
However, while the Load event and its OnLoad property are easily identifiable in the Object Browser and in the Form/Report properties dialog, the same is not the case with OnMenu. The OnMenu property is in Object Browser, but it does not appear to be is in the Properties dialog as "Menu Bar", and the Menu event is nowhere to be seen. But if I assign the name of a public function to the OnMenu property, then the function is called when I open the report:
Report_Report1.OnMenu = "=MyOnMenuCallback()"
But I also see there is a MenuBar property, which seems to have the same value that I assigned to OnMenu....
EDIT: There also appears to be a ShortcutMenuBar property which fires an event, but the event is not visible in Object Browser, and there doesn't seem to be an OnShortcutMenu property?
Where is this Menu event defined? I can't find anything in the Object Browser other than the OnMenu property. Is it a real event that I can write an event handler for (if I assign the OnMenu property a value of [Event Procedure]?
The OnMenu property is essentially deprecated in Access 2.0 and higher and is shown in the Object Browser for backwards compatibility with Access 1.x only. It was never an Event, it is a property. In Microsoft Access 1.x, you created special Macros to define your custom drop down menus and menu items and then set the OnMenu property to that Macro name. In Access 2.0 through Access 2003, you would either create the same kind of custom menu Macros, or create menubars or toolbars using the GUI and assign them to the MenuBar property. In Access 2007 and above, the proper method of providing custom menus or toolbars in your application is to create custom Ribbons using Ribbon XML and putting in the USysRibbons table.
The online documentation for many version of Access are misleading and incorrect for the OnMenu entry. For example, looking at this MSDN entry, it would lead you to believe that OnMenu was a Form or Report event, but it isn't, and the one piece of information that is missing in that documentation is "how" the Event is triggered, because it isn't an event. Click on the links there for some of the actual Form events, and you will notice they are almost the same kind of entry, but they include the crucial statement:
The XXX event occures when ...
The documentation for OnMenu is simply wrong (sadly, as is the case with too many bits of Microsoft Documentation).
Think of OnMenu as being renamed to MenuBar in Access 2.0 and higher, which is why if you set it in code, it appears in the MenuBar entry in the GUI properties dialog.

Flex Dynamic Component runtime Creation

I jus Want to know, how could be possible to create Dynamic Components in Flex run Time.
For eg: creating a combo box with change Handler Dynamically, text box Dynamically,
Now, the value of combo box and textbox should place in a VO Class and the VO class also to be created Dynamically,
user have to provide how many fields they need and wat are the components needed and according to tat Dynamic VO has to Create in run Time,
Hope This is clear,
kindly suggest me a Example, Thankxxx in Advance
To create Dynamic class is tricky.
As per your requirement you want some combo box with change Handler, text box, etc.
Once you know what component you have to display according to vo which is been created dynamically.
You can create One custom component which contains your all required component (i.e. combo box, , text box, etc. )
or
Can create different custom component. Selection is yours.
There should be one parameter/condition, which will decide which component should be displayed at run time. Like adding switch case or your own logic.
While creating combo box you can add addEventListner in actionscript to handle change even and can dispatch custom event or can perform your defined operation.
In the same way you can addEventlistner to your custom component (ex. – text box, checkbox, etc.).
There should be unique key for all if user want to create combo box unique key should be 1(sample/any dynamic value can be retrived from VO), text box unique key should be 2, etc…. it will help you while creating dynamic component.
Make sure while creating component you have to use concept of set and get method for passing parameter.
Create only required component by using proper Flex component life cycle.
Hope this may help you bit as rough understanding.. or can search for better approach..

Get selected text within an text item in Oracle forms

There is following scenario:
In Oracle Forms 10, there is a TextItem with text in it. User selects a part of the text using his mouse or keyboard and presses a forms button with trigger behind it.
How do I find the portion of the text selected by the user?
In VisualBasic, there is something like SelectionStart, SelectionEnd, SelectionText. What is the equivalent in forms? Is there any chance to do it with WebUtil?
Thanx
There are 3 built-ins in Oracle form for handling this sort of thing:
COPY_REGION
CUT_REGION
PASTE_REGION
They are all restricted built-ins, so you need to be choosy about which trigger you call them in. Refer to the documentation, it will tell you whether restricted built ins are allowed or not in that particular trigger.
They take no parameters, only operating on the currently selected item (see :system.cursor_item). So, the user is in "textfield1" and they select a certain portion of the data. You need to decide which trigger to issue COPY_REGION in (the easy one is KEY-NEXT-ITEM). For your example, when the user would then press the button to copy, your code would navigate to the intented TextItem and issue the PASTE_REGION built-in.

Textbox in Reporting Services - show text or hyperlink

I have a report in SQL Server Reporting Services which should show
a text box with a static text for "normal" users
a text box with a hyperlink to open up a new details windows for "super" users
The user level is determined by a parameter being passed into the report.
How can I achieve this? I tried to create a textbox with a text span inside that has a hyperlink, and then just leave it blank for "normal" users, but that doesn't seem to work reliably.
Is there a trick or method to get this to work? I'm thinking I need to add some code to the report to check the user level and then either insert a static text, or a text with a label, into that target textbox. But how do I do that (not having any VB/VBA/VB.NET experience....)
Thanks!
Marc
To make the hyperlink, you should be able to use an expression like
=iif(Parameters!IsSuperUser.Value = True, "http://some link","#")
in the Action property of the textbox, if you set the Action to "Jump to URL".
To control the content of the textbox, use a similar expression in the Value property.
(This is true on SSRS 2005 - I don't have access to 2008)
Edit
Unfortunately, hyperlinks in SSRS aren't formatted in a way to make it clear that they're hyperlinks. The only way to achieve this would be to add similar conditional formatting expression to the Color and TextDecoration attributes to make the field appear in a different colour and underlined when it is a hyperlink.
I haven't got SSRS installed on the machine that i'm writing this on so i can't give you an exact guaranteed bug free answer, but this answer should set you on the right track.
Have two textboxes, both located in the same absolute position (inside a container element if necessary). Fill them both with their correct values. Then just control their visibility by toggling their Hidden property with an expression:
=(Parameters!UserLevel.Value = 'Admin')
Obviously UserLevel is the name of the parameter being passed in to the report. The 'Admin' value is for illustrative purposes, personally i would use an int value to represent the user level, much like using an enum.
Remember that it is the Hidden property you are setting, so you have to reverse the logic you would have used if you were setting a Visible property :)