You need to sign in to do that
Don't have an account?
Rahavan Arumugam Alamelu
how to split the value of output text in multiple lines
Hi
am populatig the value from the wrapper class list ito the column in pageblock table. It works perfectly if the comment field !SD.syscomment has less characters.
The table is breaking and causig mis-alignment in the div if the comment has long values. Below is the code. please advise how to break the long comments into multiple lines within the outputtext
am populatig the value from the wrapper class list ito the column in pageblock table. It works perfectly if the comment field !SD.syscomment has less characters.
The table is breaking and causig mis-alignment in the div if the comment has long values. Below is the code. please advise how to break the long comments into multiple lines within the outputtext
<div id="syshoverPanel" style="width: 300px;height: auto;position: fixed;background-color: #FFFFFF;overflow-y: auto;border: 1px solid #C8C8C8;border-radius: 2px;z-index:9999;display:none;"> <apex:outputpanel > <apex:pageblock id="sysdetailpb"> <apex:pageblocktable value="{!SystemDetails}" var="SD" style="color:#555;"> <apex:column Style="text-align:right;"> <apex:outputText value="{!SD.sysNumber}:"></apex:outputText><br/> <apex:outputtext value="Comments:" style="font-weight:bold"> </apex:outputtext><br/> <apex:outputText value="Entitlement Number:" style="font-weight:bold"> </apex:outputText><br/> <apex:outputText value="Manufacturer:" style="font-weight:bold"></apex:outputText><br/> <apex:outputText value="Manufacturer Ref:" style="font-weight:bold"></apex:outputText><br/> <apex:outputText value="Reseller:" style="font-weight:bold"></apex:outputText><br/> <apex:outputText value="MSP:" style="font-weight:bold"></apex:outputText><br/> <apex:outputText value="L1 Support Provider:" style="font-weight:bold"></apex:outputText> </apex:column> <apex:column > <apex:outputText value="{!SD.sysAccName}"></apex:outputtext><br/> <apex:outputText value="{!SD.syscomment}"> </apex:outputText><br/> <apex:outputText value="{!SD.sysEntId}"> </apex:outputText><br/> <apex:outputText value="{!SD.sysMFG}"> </apex:outputText><br/> <apex:outputText value="{!SD.sysMFGRef}"> </apex:outputText><br/> <apex:outputText value="{!SD.sysreseller}"> </apex:outputText><br/> <apex:outputText value="{!SD.MSP}"> </apex:outputText><br/> <apex:outputText value="{!SD.sysSuppBy}"> </apex:outputText><br/> </apex:column> </apex:pageblocktable> </apex:pageblock>
All Answers
and use standard css :'' .slds-scope .slds-truncate'' style
or you can write your own css
Use text-overflow: ellipsis; and white-space: pre-wrap; css on outputText and escape="false" attribute on outputText.
The ccomments are gettig displayed in multiple lines now.. But it causes the mis-alignment in the div again...
The labels such as comments:, Entitlement: are getting misaligned...Have attached the screenshots with proper aligment(when displayig short comment value) and when we display long value.
Please advise.
Thanks
You have to write common function
function abc(obj,isShow) {
if(isShow) {
$(obj).parent().next().children().text(msg);
$(obj).parent().next().show();
}
else
$(obj).parent().next().hide();
}
html-onmouseover="abc(this, true)"
html-onmouseout="abc(this, false)"
Javascirpt:
through below am calling mouseover action
action function which gets invoked via javascirpt function
the contents gets displayed in 'syshoverPanel' which is a adiv when hovering over command link. What i want now is the ability to hover over the popup(syshoverpanel) and copy the details over there. Please advise how i can apply your solution here.
thanks
Can you please help me on this.
Thanks
Can you please assit me on this requirement. I need urgent help.
Thanks