• harry.kim
  • NEWBIE
  • 0 Points
  • Member since 2017
  • CJ OliveNetworks

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 3
    Replies
Hello.

I had created a modal component when I click a button like below.

createGroup : function(component, event, helper) {
        
        $A.createComponent(                
            "c:NLPCreatePublicGroup",                                
            {    
                "aura:id": "NLPCreatePublicGroup"
            },function(newCmp){
                component.set("v.modal", newCmp);
            }
        );
    },

I want to call a function of another component by pressing a certain button in this component.

So, I had made an lightning event component named 'NLPRefreshRole'
Then registered the event in a modal component and insert the code that activates the event.

<aura:registerEvent name="refreshRole" type="c:NLPRefreshRole"/>

var evt = component.getEvent("roleClickEvt");
evt.fire();

Then I put the following handler in the target component
<aura:handler name="refreshRole" event="c:NLPRefreshRole" action="{!c.renderTreeN}"/>

But it does not work properly.

How can I call the other component's function in modal component ?

 
Can I update an event data with trigger generated from Outlook ? I can't use the outlook, So, I couldn't check that. T.T 
Will be executed the trigger about the data that is synced by Outlook?
hello.
I am using fullcalendar 3.9.0 in lightning component.
I want to change the themesystem to bootstrap4 with the theme name to Spacelab like below.

User-added image
So, I loaded some related stylesheets..
 <ltng:require styles="{!join(',',
                          $Resource.fullcalendar390     + '/fullcalendar-3.9.0/fullcalendar.css',
                          $Resource.bootstrap4     + '/css/bootstrap.css',
                          $Resource.fontawesome5css     + '/css/all.css'
                          )}"
and created a fullcalendar with a option like this.
themeSystem: 'bootstrap4'

But, Every part of the screen affected and It was not applied properly.

User-added image


How can I do this? T.T
To get paramater I used this code..

<aura:component implements="lightning:isUrlAddressable,lightning:hasPageReference" >
{!v.pageReference.state}

but, {!v.pageReference} is null.

how can I get a URL paramater in the lightning component????
Hello.
I made two record types.
When I select the first record type, I'd like to create a new record in a A page with some detail information and
If I select the second record type, I'd like to create a new record in a A page without detail information.
( A page is visualforce page or lightning component, not page layout) 
So, to make this process, I need to know the selected record type information.
Because, depends on the record type, I will hide some lightning component items.
But I have no idea about this.
is it possible??? please help me .
 
hi all
I use list button. Link URL is below. I want to pass parameter "id"
{!URLFOR($Action.Travel_Master_Regular_Report__c.New, null, [id= TravelMaster__c.Id])}

in the lightning component page, how can i get the parameter????
 
Hi I have some problem.
I want to download PageReference to PDF file. But korean or chinese are not visible. 
For this, my apex code and lightning callback code is below.

1. apex code
PageReference pdfPage = Page.VOCFinalReportPage;
        pdfPage.getParameters().put('id',recordId);
        Blob pdfBlob;
        try{
            pdfBlob = pdfPage.getContents();
        }catch(VisualforceException ex){
            pdfBlob = Blob.valueOf('some pdf');
            System.debug(ex);
        }
        return JSON.serialize(pdfBlob);

2. lightning controller (callback)
                var pdfbase64 = JSON.parse(res.getReturnValue());
                var byteCharacters = atob(pdfbase64);
                var byteNumbers = new Array(pdfbase64.length);
                for (var i = 0; i < byteCharacters.length; i++) {
                    byteNumbers[i] = byteCharacters.charCodeAt(i);
                }
                var byteArray = new Uint8Array(byteNumbers);
                var blob = new Blob([byteArray], {type: "application/pdf"});
                
                FileSaver.saveAs(blob, 'finalreport.pdf');


What is the problem?
Please help me. Thank you...
Hello.

I had created a modal component when I click a button like below.

createGroup : function(component, event, helper) {
        
        $A.createComponent(                
            "c:NLPCreatePublicGroup",                                
            {    
                "aura:id": "NLPCreatePublicGroup"
            },function(newCmp){
                component.set("v.modal", newCmp);
            }
        );
    },

I want to call a function of another component by pressing a certain button in this component.

So, I had made an lightning event component named 'NLPRefreshRole'
Then registered the event in a modal component and insert the code that activates the event.

<aura:registerEvent name="refreshRole" type="c:NLPRefreshRole"/>

var evt = component.getEvent("roleClickEvt");
evt.fire();

Then I put the following handler in the target component
<aura:handler name="refreshRole" event="c:NLPRefreshRole" action="{!c.renderTreeN}"/>

But it does not work properly.

How can I call the other component's function in modal component ?

 
hello.
I am using fullcalendar 3.9.0 in lightning component.
I want to change the themesystem to bootstrap4 with the theme name to Spacelab like below.

User-added image
So, I loaded some related stylesheets..
 <ltng:require styles="{!join(',',
                          $Resource.fullcalendar390     + '/fullcalendar-3.9.0/fullcalendar.css',
                          $Resource.bootstrap4     + '/css/bootstrap.css',
                          $Resource.fontawesome5css     + '/css/all.css'
                          )}"
and created a fullcalendar with a option like this.
themeSystem: 'bootstrap4'

But, Every part of the screen affected and It was not applied properly.

User-added image


How can I do this? T.T
Hello.
I made two record types.
When I select the first record type, I'd like to create a new record in a A page with some detail information and
If I select the second record type, I'd like to create a new record in a A page without detail information.
( A page is visualforce page or lightning component, not page layout) 
So, to make this process, I need to know the selected record type information.
Because, depends on the record type, I will hide some lightning component items.
But I have no idea about this.
is it possible??? please help me .