You need to sign in to do that
Don't have an account?
Sascha Deinert
RIGHT(String s, Ingeter i)
Hi,
I create a right method, but how can I use the s variable for the insert into the stats object?
Thanks,
Sascha
I create a right method, but how can I use the s variable for the insert into the stats object?
Thanks,
Sascha
public class Stats_class { public Stats_class() { } Public String Right(String s, Integer I) { S = ApexPages.currentPage().getUrl(); I = 15; return s; } public pagereference dmlop() { Stats__c sta = new Stats__c(); sta.User__c = Userinfo.getUserId(); sta.Site__c = ApexPages.currentPage().getUrl(); INSERT sta; RETURN NULL; } }
I have modified your code according to your requirement.
Please use the below updated code :
Let me know if you need more information or help on this.
Thanks,
Abhishek Bansal