• Supriya P 9
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi Everyone,

I have LWC component wrapped in aura component. My LWC component is using gerRecord to get the recordType info of the record. 
The problem I'm facing is when i first time click the button, wire method is not called and on refresh of the screen it's working as expected.

Note: Two scenarios @wire is not getting called are below,
1) on first time load of screen
2) when screen is left ideal for few minutes.

Please let me know if anyone has any suggestions on this.

Thanks
Hello ,
In VF page I need to display value of Contract ID
In VF:
<apex:commandButton action="{!ClickForContract}" value="Contract Id"  />
<apex:outputText value="{!ContractId }"/>

In Class:
 public String ContractId {get; set;}
 public String ClickForContract() {
        Quote q=[Select id,Contract.id,Contract_ID__c from quote];
        ContractId=q.Contract.id;   return ContractId ; }
Please help me.
I have two objects
1) Opportunity(Master Object)
2)OpportunityOrder__c (Child object) .  
When i query the object,
SELECT id,name,Opportunity_Number__c,(SELECT id,name,Order_Number__c from OpportunityOrder__r) from opportunity.
it throws me an error message saying 
(SELECT id,name,Order_Number__c from OpportunityOrder__r) from opportunity
                                     ^
ERROR at Row:1:Column:75
Didn't understand relationship 'OpportunityOrder__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.

I would be glad if somebody can help me find a solution for this. 
Thank you.
 
I have two objects
1) Opportunity(Master Object)
2)OpportunityOrder__c (Child object) .  
When i query the object,
SELECT id,name,Opportunity_Number__c,(SELECT id,name,Order_Number__c from OpportunityOrder__r) from opportunity.
it throws me an error message saying 
(SELECT id,name,Order_Number__c from OpportunityOrder__r) from opportunity
                                     ^
ERROR at Row:1:Column:75
Didn't understand relationship 'OpportunityOrder__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.

I would be glad if somebody can help me find a solution for this. 
Thank you.