• Abhish Chalke
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 1
    Replies
i am getting parsed data from this 
wrapperlhscount wlc = hrwdLocationHealthStatusTileController.parse(res.getBody());

my response is 
{
    "transactionSequenceId": "w465t4564hfgdys547ue54",
    "code": "200",
    "subCode": "1000",
    "status": "Success",
    "message": "OK",
    "parentCompanyId": "SWC",
    "responseData": {
        "locationHealthStatusList": [
            {
                "companyId": "SWC",
                "parentCompanyId": "SWC",
                "family": "Managed Router Services",
                "status": "Normal",
                "statusCount": 3994
            },
            {
                "companyId": "SWC",
                "parentCompanyId": "SWC",
                "family": "Managed Router Services",
                "status": "Backup Down",
                "statusCount": 39
            }
  
        ]
    }
}
I wanted to fetch statusCount from the response 
how should I fetch this 
in wlc variable I am getting parsed data
 
<button class="btn-view-all" onclick="openall()">View All   </button>

JS function
function openannouncement(){
            var urlString=window.location.href;
            var baseURL = urlString.substring(0, urlString.indexOf("/_ui"));
            var siteBaseURL = baseURL + '/s';
            var redirectUrl = siteBaseURL + '/viewall'
            window.open(redirectUrl,"_self");
         }

after clickig on view all button
browser URL is changing as expected but page is not redirecting 
<div class="col-md-7">
    <apex:inputSecret value="{!newPassword}" styleClass="form-control newPass formControl" />
</div>
<!--New Addition-->
<div class="panel conditionPanel" rendered="{!ISBLANK(newPassword)}">
    <ul class="list-unstyled font-12">
        <h5 class="font-12"><span class="glyphicon glyphicon-info-sign" /><strong>{!$Label.passwordmanage}</strong> </h5>
    </ul>
</div>

I wanted show next div only when user type something in new password
// @track colormapdata = [];
     @wire(getChildMFSOLegendData)
    portalPref({data,error}) {
        console.log('#####2',data);
        if (data) {
            //console.log('####inside if',portalPref.data);
            // this.colormapdata = data;
            // this.error = undefined;
            //this.colormapdata=data;
            //this.currentRowLimit = data.HSOP_RecordCount__c;
            //console.log('####data',this.colormapdata);
        }
        else if (error) {
            // this.colormapdata = undefined;
            //this.error = error;
           // console.log('The wire error: ' + error);
        }
    }
 
<template if:true={data}>
        <template for:each={data} for:item="cus">
         <c-hrwdlegends name={cus.value.Display_Status_Value__c}
        colourcode={cus.value.Block_Color__c} key={cus.Id}>abcd</c-hrwdlegends>
        </template>
    </template>

I am not able to see anything on my component
While operating dataloader from command prompt I am getting error

"C:\Program Files (x86)\Salesforce.com\dataloader\bin>process.bat "C:\Program Fil
es (x86)\Salesforce.com\dataloader\samples\conf" accountInsert
2019-04-16 13:57:20,258 INFO  [main] controller.Controller initLog (Controller.j
ava:475) - Using built-in logging configuration, no log-conf.xml in C:\Program F
iles (x86)\Salesforce.com\dataloader\bin\configs\log-conf.xml
2019-04-16 13:57:20,274 INFO  [main] controller.Controller initLog (Controller.j
ava:477) - The log has been initialized
2019-04-16 13:57:20,274 INFO  [main] process.ProcessConfig getBeanFactory (Proce
ssConfig.java:104) - Loading process configuration from config file: C:\Program
Files (x86)\Salesforce.com\dataloader\samples\conf\process-conf.xml
2019-04-16 13:57:20,352 INFO  [main] support.AbstractApplicationContext prepareR
efresh (AbstractApplicationContext.java:495) - Refreshing org.springframework.co
ntext.support.FileSystemXmlApplicationContext@5bcab519: startup date [Tue Apr 16
 13:57:20 IST 2019]; root of context hierarchy
2019-04-16 13:57:20,399 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinit
ions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from file
 [C:\Program Files (x86)\Salesforce.com\dataloader\samples\conf\process-conf.xml
]
2019-04-16 13:57:20,438 INFO  [main] support.DefaultListableBeanFactory preInsta
ntiateSingletons (DefaultListableBeanFactory.java:557) - Pre-instantiating singl
etons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4f
9a3314: defining beans [accountInsert]; root of factory hierarchy
2019-04-16 13:57:20,485 INFO  [accountInsert] controller.Controller createDir (C
ontroller.java:306) - Config directory already exists: C:\Program Files (x86)\Sa
lesforce.com\dataloader\samples\conf
2019-04-16 13:57:20,485 INFO  [accountInsert] controller.Controller initConfig (
Controller.java:396) - Looking for file in config path: C:\Program Files (x86)\S
alesforce.com\dataloader\samples\conf\config.properties
2019-04-16 13:57:20,485 INFO  [accountInsert] controller.Controller initConfig (
Controller.java:429) - User config is found in C:\Program Files (x86)\Salesforce
.com\dataloader\samples\conf\config.properties
2019-04-16 13:57:20,563 INFO  [accountInsert] controller.Controller initConfig (
Controller.java:439) - The controller config has been initialized
2019-04-16 13:57:20,563 INFO  [accountInsert] process.ProcessRunner run (Process
Runner.java:123) - Initializing process engine
2019-04-16 13:57:20,563 INFO  [accountInsert] process.ProcessRunner run (Process
Runner.java:126) - Loading parameters
2019-04-16 13:57:20,578 INFO  [accountInsert] config.LastRun load (LastRun.java:
96) - Last run info will be saved in file: C:\Program Files (x86)\Salesforce.com
\dataloader\samples\conf\accountInsert_lastRun.properties
2019-04-16 13:57:20,578 WARN  [accountInsert] config.Config initLastRunFile (Con
fig.java:302) - Error loading last run file C:\Program Files (x86)\Salesforce.co
m\dataloader\samples\conf\accountInsert_lastRun.properties: Access is denied
java.io.IOException: Access is denied
        at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method
)
        at java.base/java.io.File.createNewFile(File.java:1024)
        at com.salesforce.dataloader.config.LastRun.load(LastRun.java:98)
        at com.salesforce.dataloader.config.Config.initLastRunFile(Config.java:3
00)
        at com.salesforce.dataloader.config.Config.loadParameterOverrides(Config
.java:701)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:127)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:107)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:266)
2019-04-16 13:57:20,610 FATAL [main] process.ProcessRunner topLevelError (Proces
sRunner.java:251) - Unable to run process accountInsert
java.lang.RuntimeException: com.salesforce.dataloader.exception.ProcessInitializ
ationException: Error creating file: C:\Program Files (x86)\Salesforce.com\datal
oader\samples\conf\..\status\success041619015720610.csv
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:169)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:107)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:266)
Caused by: com.salesforce.dataloader.exception.ProcessInitializationException: E
rror creating file: C:\Program Files (x86)\Salesforce.com\dataloader\samples\con
f\..\status\success041619015720610.csv
        at com.salesforce.dataloader.controller.Controller.setStatusFiles(Contro
ller.java:574)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:131)
        ... 2 more
Caused by: java.io.IOException: Error creating file: C:\Program Files (x86)\Sale
sforce.com\dataloader\samples\conf\..\status\success041619015720610.csv
        at com.salesforce.dataloader.controller.Controller.validateFile(Controll
er.java:595)
        at com.salesforce.dataloader.controller.Controller.setStatusFiles(Contro
ller.java:571)
        ... 3 more"

 
<button class="btn-view-all" onclick="openall()">View All   </button>

JS function
function openannouncement(){
            var urlString=window.location.href;
            var baseURL = urlString.substring(0, urlString.indexOf("/_ui"));
            var siteBaseURL = baseURL + '/s';
            var redirectUrl = siteBaseURL + '/viewall'
            window.open(redirectUrl,"_self");
         }

after clickig on view all button
browser URL is changing as expected but page is not redirecting 
i am getting parsed data from this 
wrapperlhscount wlc = hrwdLocationHealthStatusTileController.parse(res.getBody());

my response is 
{
    "transactionSequenceId": "w465t4564hfgdys547ue54",
    "code": "200",
    "subCode": "1000",
    "status": "Success",
    "message": "OK",
    "parentCompanyId": "SWC",
    "responseData": {
        "locationHealthStatusList": [
            {
                "companyId": "SWC",
                "parentCompanyId": "SWC",
                "family": "Managed Router Services",
                "status": "Normal",
                "statusCount": 3994
            },
            {
                "companyId": "SWC",
                "parentCompanyId": "SWC",
                "family": "Managed Router Services",
                "status": "Backup Down",
                "statusCount": 39
            }
  
        ]
    }
}
I wanted to fetch statusCount from the response 
how should I fetch this 
in wlc variable I am getting parsed data