Timeline for Test class for a controller - Unable to set the variable in the constructor
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 20, 2017 at 5:36 | vote | accept | SfdcBat | ||
Jun 20, 2017 at 0:51 | comment | added | Santanu Boral | Let us continue this discussion in chat. | |
Jun 20, 2017 at 0:45 | comment | added | SfdcBat | I can , but the variables is not used in VF page. Although I tried using get;set; but even then I get the same error. Weird! What am I missing!! | |
Jun 20, 2017 at 0:42 | comment | added | Santanu Boral | can you use public String srid {get;set;} | |
Jun 20, 2017 at 0:42 | history | edited | Santanu Boral | CC BY-SA 3.0 |
added 10 characters in body
|
Jun 20, 2017 at 0:38 | comment | added | SfdcBat |
Santanu , I still get the same error with your code as well. Is this because public String srid; is not set in the constructor?
|
|
Jun 20, 2017 at 0:29 | comment | added | Santanu Boral | can you use my code and check if it works | |
Jun 20, 2017 at 0:26 | comment | added | SfdcBat |
I do have the referrer before ApexPages.StandardController but still the same error comes up
|
|
Jun 20, 2017 at 0:23 | comment | added | Santanu Boral | I got it, issue in the referrer | |
Jun 20, 2017 at 0:21 | history | edited | Santanu Boral | CC BY-SA 3.0 |
added 7 characters in body
|
Jun 20, 2017 at 0:18 | comment | added | Avijit Chakraborty | He is using standard controller so its not required | |
Jun 20, 2017 at 0:18 | history | edited | Santanu Boral | CC BY-SA 3.0 |
added 707 characters in body
|
Jun 20, 2017 at 0:09 | history | answered | Santanu Boral | CC BY-SA 3.0 |