• JuuanGallegos
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 4
    Replies
public void checkOrderTypeBeforeCreateUserPortal() {
String permissionId = [Select id from PermissionSet where Name ='PatientPortal' limit 1].Id;
        for(Order o : (List<Order>) Trigger.newMap){
         if((o.Secondary_Order_Type__c != 'HVK' || o.Secondary_Order_Type__c != 'HHW') && o.Account.GCE_Registered_for_Patient_Portal__c == true) {
               
                try {
                    CtrlCommunityUserMagmt.ctrl_setPermission(permissionId,
                                                               o.Account.HealthCloudGA__PrimaryContact__c,
                                                               '',
                                                               'PatientPortal',
                                                               true,
                                                               'GCE Customer Community User');
                    }
                catch (Exception e){
                    system.debug('### Error ' + e);
                }
            }
        }

I'm trying to select all the text inside of an input text field, once a user fired an onfocus event, I tried using select() js method, but look like is not posible in lightning components, so there are someone to know how can I do it?

var inputSelected = component.find('inputId');
      inputSelected.select();
this is something that I'm trying to do it.

Thanks,

Juan Gallegos
 

I'm trying to select all the text inside of an input text field, once a user fired an onfocus event, I tried using select() js method, but look like is not posible in lightning components, so there are someone to know how can I do it?

var inputSelected = component.find('inputId');
      inputSelected.select();
this is something that I'm trying to do it.

Thanks,

Juan Gallegos