• ronmis
  • NEWBIE
  • 20 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi guys,
          I have the following PickLists

Picklist_A
Values : 1, 2, 3, 4

Picklist_B
Values : L, M, N, O

Picklist_B is dependent on Picklist_A in this way
if 1 or 2 are selected from Picklist_A, Picklist_B will show L, M
if 3 or 4 are selected from Picklist_A, Picklist_B will show N, O

I'm trying to figure out how to write an apex method updatePickList() that will accept a string and add that to Picklist_B and make it dependent on Picklist_A 3,4

Thanks in advance

 
  • October 16, 2019
  • Like
  • 0
I've got a string like so "The_quick_brown_fox_jumps_over_the_lazy_dog"

I want to add a space every 10 characters to it only if those 10 characters don't alreay have a space

so I'm hoping for a result like this
"The_quick_ brown_fox_ jumps_over _the_lazy_ dog"

But if the String was this
"The quick brown fox jumps over the lazy dog"
then it should remain the same.
  • September 10, 2019
  • Like
  • 0
<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" renderAs="pdf">
<html>
<table width="200" border="1" style="table-layout: fixed;">
            <tr>
                <td style="width:100px; word-wrap:break-word;">
                    This is long line so it should break
                </td>

                <td style="width:100px; word-wrap:break-word;">
                    This_is_also_long_line_but_it_without_spaces
                </td>
            </tr>
    </table>
</html>
</apex:page>
How do I get the 2nd column's text to wrap properly? In HTML it wraps, but not in PDF. Please help
  • September 10, 2019
  • Like
  • 0
Hi guys,
          I have the following PickLists

Picklist_A
Values : 1, 2, 3, 4

Picklist_B
Values : L, M, N, O

Picklist_B is dependent on Picklist_A in this way
if 1 or 2 are selected from Picklist_A, Picklist_B will show L, M
if 3 or 4 are selected from Picklist_A, Picklist_B will show N, O

I'm trying to figure out how to write an apex method updatePickList() that will accept a string and add that to Picklist_B and make it dependent on Picklist_A 3,4

Thanks in advance

 
  • October 16, 2019
  • Like
  • 0