ObjectPageHeader: titleSelectorTooltip Not Working - sapui5

I am using title selector for my object page header. However, I am not able to overwrite default tooltip for the user-defined string.:
<ObjectPageHeader id="idOpreationObjectPageHeader"
showTitleSelector="true"
titleSelectorTooltip="myOwnString"
titleSelectorPress="handleTitleSelectorPress">
</ObjectPageHeader>
Using this code, it still shows me default string in a tooltip like this:
Can anyone guide me what am I doing wrong?

titleSelectorTooltip is a property from sap.m.ObjectHeader
only.
sap.uxap.ObjectPageHeader doesn't have that kind of setting.
Update: As of 1.56, the property titleSelectorTooltip is available in ObjectPageHeader too.
titleSelectorTooltip
The custom tooltip will be visible if the showTitleSelector property is set to true.
Note: If the aggregation is destroyed or set to invalid value, the default tooltip will be set. The default tooltip text is "Related options".

Related

access form, opposite of control source

I have a checkbox in a access form which get ticked depending on the control source. (checked if data is "-1", unchecked if 0). This is all working well but I need another checkbox that does the opposite. unchecked if data is -1 and checked if data is 0.
How can I do that?
[edit] I've read in https://support.office.com/en-us/article/IIf-Function-32436ecf-c629-48a3-9900-647539c764e3 that I can use the Iif function. Can I use this, to make a checkbox checked when another checkbox in my form is unchecked and vice versa..? I've tried this as a default value on checkbox2
=IIf([checkbox1.Value]=0, -1, 0)
but it doesn't work
Won't work to set in Default Value property. Expression in Control Source property:
=Not checkbox1
But that will be an UNBOUND control. If you need to save the calculated value to a field that will require code - macro or VBA

How to display the value chosen from Sliderfield xtype on the dialog?

I am using sliderfield xtype allowing authors to chose a value. Currently authors are not aware of current chosen value. Is there a way to show the value as either a bubble as shown here or a separate text value outside the slider? Below is the dialog.
<backgroundAlpha
jcr:primaryType="cq:Widget"
fieldLabel="Background Alpha (Opacity)"
increment="1"
maxValue="{Long}100"
minValue="{Long}0"
name="./backgroundAlpha"
useTips="{Boolean}true"
xtype="sliderfield"/>
I Just used the below code to get the property and able to display in page. And the default dialog already shows the selected value.
<% if(properties.get("sliderfield")!=null){%> Here is your sliderfield FIELD DATA:: <%=properties.get("sliderfield")%> <%}%>

install4j: Configurable form change visibility from drop-down list

I have a Configurable Form and i want to change the visibility of another field based on the value of a Drop-down list.
For example I have a Drop-Down list with entries A,B and the variable name for it is testDD.
I have a Text field smtpMailServer that I want to display only if testDD's value is A.
I have tried the following approaches in smtpMailServer's visibility without success:
return ((String) context.getVariable("testDD")).equals("A");
return (context.getVariable("testDD")).equals("A");
and I've also tried to add a script to testDD Change Selection Script with The following code
context.setVariable("ThisFormConfiguration", selectedItem);
And use the code above with ThisFormConfiguration instead of testDD. But it's not working.
Could you please help me?
Thanks!
I have tried the following approaches in smtpMailServer's visibility without success
The visibility script of a form component is only evaluated when the form is shown. You should keep it, but it only handles the initial condition.
and I've also tried to add a script to testDD Change Selection Script with
The following code context.setVariable("ThisFormConfiguration", selectedItem); A
Using the "Selection change script" property is the right idea, but your script has no effect. There is no live binding from the variables to the form components, the variable is read when the form is shown and updated when the user clicks "Next".
You have to use the following selection script:
formEnvironment.getFormComponentById("123").setVisible(selectedItem.equals("A"));
where "123" has to be replaced by the ID of the text field.

Setvalue of autocomplete field doesn't work

I want to set value of autocomplete field using xf:setvalue. I know that firstly I have to set value of field and then set label (#label). I try to do that in following way:
<xf:setvalue ref="xxf:instance('fr-form-instance')//*[name() = $autocomplete-name]" value="'myValue'"/>
<xf:setvalue ref="xxf:instance('fr-form-instance')//*[name() = $autocomplete-name]/#label" value="'labelValue'"/>
After that in form builder I see, that in main instance it looks properly:
<xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all">
<form>
<section-5>
<control-10 label="labelValue">myValue</control-10>
</section-5>
</form>
</xf:instance>
but unfortunately in my autocomplete field there is no change. I can notice the change only if I go to 'edit source' button in form builder, and without any change, I click 'apply'. Then autocomplete is automatically refreshed and I see my label: 'labelValue'. What should I do, to refresh autocomplete field after setvalue ??
regards
You need to do this by setting the label of the autocomplete, not its value, which is done by dispatching the fr-set-label event to the autocomplete control. Then, internally, the autocomplete will do something very similar to what it does if the user had entered that label, in particular calling the service to retrieve the corresponding value.

How to add a non editable field using install4j - value of this is not static and should be displayed from a user defined variable

I would like to be able to add a key/value pair label in an install screen. The key is a static text. The value is a dynamic value and a value from a variable should be used to display the value label. I'm not able to do so using install4J. I see options like a textArea, textfield that will enable to be able to do so. However, these are editable fields and does not serve my purpose. I want a non editable field to display a value from a variable. This is not a system variable. This should be a user defined variable. I'm using install4j 4.2 version. Any help in this area is highly appreciated.
Thanks for the response. I was able to create key/value pair. However, I'm not able to define my own installer variable. Can you please let me know where I can define an installer variable that can be used in the key/value pair?
There is a "Key value pair" form component that does exactly what you need. It is available in install4j 4.2.
In the "Value label/Text" property, you can use an installer variable like
${installer:myValue}
for displaying dynamic text.