• sitogels prediksi togel
  • NEWBIE
  • -1 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hello everyone,


I am looking to have an expand collapse for the below html table (Parent should have all the childs beneath it and when collapsed it should display all the childs, by default it should show only the parent records).

User-added image
Below is the component code.

 

<aura:iteration items="{!v.allProducts}" var="prod" indexVar="itemIndex">
            <!--<lightning:buttonIcon value="{!itemIndex}"  iconName="{!item.expanded?'utility:chevrondown':'utility:chevronright'}" />-->
            <tr>
                <aura:if isTrue="{!!prod.isGreyRow }">

                    <td class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_col-bordered slds-border_left slds-border_right">{!prod.name} </td>
                    <td class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_col-bordered slds-border_left slds-border_right  width=5px">{!prod.F2Actuals} </td>
                    <td class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_col-bordered slds-border_left slds-border_right">{!prod.F1Actuals} </td>
                    <td class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_col-bordered slds-border_left slds-border_right"> {!prod.FActuals}</td>
                    <td class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_col-bordered slds-border_left slds-border_right">{!prod.FActualsYTD}  </td>
</aura:if>
     </tr>
     </aura:iteration>
    </table>

Controller code:

({
getRevenueMetricData:function(component, event, helper){
    var action = component.get("c.getTableRowsFromClientPlanId");
    action.setParams({
        "planId": component.get('v.gbmid')
    });     
    action.setCallback(this,function(response){
        var state = response.getState();
        if (state === "SUCCESS") {
            var data =response.getReturnValue();
            component.set("v.allProducts", data);

            }
             }

        else if (state  ==="null" || state  ===undefined || state  ==="ERROR"  ) {
            this.handleException(component,response.getError());}
    });
    $A.enqueueAction(action);
},


I am aware that this expand collapse can be achieved by lighting :treegrid, however my requirement doesn't satidfy if i amke use of tree grid.

Hence i have to go with the html table... Everything is coming correctly data wise. I am struck getting the expand and collapsible functioning.

Any suggestions in this regard will be really helpful.

Regards,
Rabin

 

  • June 04, 2020
  • Like
  • 0

For several months I've been using the instructions in this blog post to use Workbench to backup the metadata in my org. Last month, the process stopped working. I assumed it was a one-off oddity and didn't think much of it, but I'm seeing the same errors again this month. Generating the XML "package" containing the metadata I want to export works fine and the process appears to succeed. However when I go to click the download link in Workbench I am told the .zip archive no longer exists. I've uploaded screenshots to show that the ZIP file is generated and the error message displayed when I click the download button. 

I have no idea what I'm doing wrong, and don't believe I've changed anything compared to what I was doing previously, when the backup worked. 

What I see before I click "download"

Error Message

I know there are alternative methods for doing this, such as those discussed here https://developer.salesforce.com/forums/?id=906F0000000BIYzIAO but I am interested in understanding why the method I've been using ceased to work.