• Tim Chadwick 11
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi there, Think i have hit a bug.

When building a lightning component i have a modal for creating a record.
One of the feilds for this is a currency feild so i have used the following 
<lightning:input type="number" formatter="currency" aura:id="optionField" label="Cost" value="{!v.simpleNewOption.Cost__c}"/>
Renders fine and works as expected.
EXCEPT, When you enter the character e, it brings up the background records edit page.

Thoughts ?
 
I all, Currently working on something to open a image of a file, However following the support documents the function does not seem to work, (e.lightning:openFiles). There seems to be very little documentation on this area. This is my code, (CMP)
 
<aura:dependency resource="markup://lightning:openFiles" type="EVENT"/> 
    <lightning:button variant="brand" label="Preview Reciept" onclick="{!c.preview}" />

(CMPController)
 
console.log('enter');
        var action = $A.get('e.lightning:openFiles');
                
        if(action){
            action.setParams({
                "recordIds" :['0690Y000001GnHVQA0','0690Y000001GfdFQAS'],
                "selectedRecordId" : "0690Y000001GnHVQA0"
            });
            action.fire();
            
        }else {
            console.log('failed hard');
        }
        
        console.log('exit');

The console logs as follow:
enter
failed hard
exit

So it looks like the action variable does get initalised by the openFiles function. Can anyone help here?
 
I all, Currently working on something to open a image of a file, However following the support documents the function does not seem to work, (e.lightning:openFiles). There seems to be very little documentation on this area. This is my code, (CMP)
 
<aura:dependency resource="markup://lightning:openFiles" type="EVENT"/> 
    <lightning:button variant="brand" label="Preview Reciept" onclick="{!c.preview}" />

(CMPController)
 
console.log('enter');
        var action = $A.get('e.lightning:openFiles');
                
        if(action){
            action.setParams({
                "recordIds" :['0690Y000001GnHVQA0','0690Y000001GfdFQAS'],
                "selectedRecordId" : "0690Y000001GnHVQA0"
            });
            action.fire();
            
        }else {
            console.log('failed hard');
        }
        
        console.log('exit');

The console logs as follow:
enter
failed hard
exit

So it looks like the action variable does get initalised by the openFiles function. Can anyone help here?