Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Administration Forums - Mobile/PDA/Handhelds
Forum to discuss use of SalesLogix with mobile devices including SalesLogix mobile and other mobile solutions. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Mobile/PDA/Handhelds | New ThreadView:  Search:  
 Author  Thread: Extending Mobile.SalesLogix.Views.Login
Ben
Posts: 26
 
Extending Mobile.SalesLogix.Views.LoginYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 14 1:19 PM

Hey Hive Mind,


I am attempting to add a customization to our SLX Mobile installation by modifying portions of the login page.  However, no matter what I do my customizations to the widgetTemplate seem to be ignored.  I am able to modify things on the login page like the labels and such, but not the widgetTemplate.


It is definitely understanding the new product I added which includes the customization as I can see it changing other parts of the page, but not the structure.  Here is the section that is modifying the login view.


 


lang.extend(Mobile.SalesLogix.Views.Login, {
WORKS > userText: "login name",
IGNORED > widgetTemplate: new Simplate([
'<div id="{%= $.id %}" title="{%: $.titleText %}" class="panel {%= $.cls %}" hideBackButton="true">',
'<p class="logo"><img src="content/images/logo.png"></img></p>',
'<div class="panel-content" data-dojo-attach-event="onkeypress: _onKeyPress" data-dojo-attach-point="contentNode"></div>',
'<button class="button actionButton" data-action="authenticate"><span>{%: $.logOnText %}</span></button>',
'<span class="copyright">{%= $.copyrightText %} asdasd </span>',
'<span class="copyright">{%= App.getVersionInfo() %}</span>',
CUSTOM LINE > '<span class="copyright">Some new fancy line of text we want</span>',
'</div>'
])

});

Any ideas would be appreciated.


Thanks,
Ben 

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Extending Mobile.SalesLogix.Views.LoginYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 14 2:28 PM

There is some caching done with simplates. Are you clearing the browser cache before refreshing?

[Reply][Quote]
Ben
Posts: 26
 
Re: Extending Mobile.SalesLogix.Views.LoginYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 14 3:16 PM

Hey Ryan - yeah, I cleared the cache, tried incognito mode, etc.  


I am stumped.

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Extending Mobile.SalesLogix.Views.LoginYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Oct 14 4:09 PM

There must be something else going on. I just added some new lines the the widgetTemplate simplate and it shows up fine in the client for me.


If you open dev tools and view the source does it show the customization?

[Reply][Quote]
Ben
Posts: 26
 
Re: Extending Mobile.SalesLogix.Views.LoginYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 14 7:59 AM

Thanks for trying that out - I appreciate you taking the time to test it.  If I use dev tools and look at the script files, I can see my customizations in there - it hits breakpoints in the code.  I even moved this bit of code into another working product and it still doesn't work.  To rule out caching completely, I asked someone else who has never been to the mobile log in to check it out and still no luck.


Maybe it has to do with where/how/when I can calling the customization?  Here is my entire ApplictionMobule:


  


define('Mobile/PIN/Base/ApplicationModule', [
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/string',
'dojo/query',
'Sage/Platform/Mobile/ApplicationModule'
], function(
declare,
lang,
query,
string
) {
return declare('Mobile.PIN.Base.ApplicationModule', Sage.Platform.Mobile.ApplicationModule, {


init: function() {
this.inherited(arguments);
},
loadViews: function() {
this.inherited(arguments);

},
loadCustomizations: function() {
this.inherited(arguments);

// run our stuff
this.registerCustomizations();
},
registerCustomizations: function() {

lang.extend(Mobile.SalesLogix.Views.Login, {
userText: "login name",
widgetTemplate: new Simplate([
'<div id="{%= $.id %}" title="{%: $.titleText %}" class="panel {%= $.cls %}" hideBackButton="true">',
'<p class="logo"><img src="content/images/logo.png"></img></p>',
'<div class="panel-content" data-dojo-attach-event="onkeypress: _onKeyPress" data-dojo-attach-point="contentNode"></div>',
'<button class="button actionButton" data-action="authenticate"><span>{%: $.logOnText %}</span></button>',
'<span class="copyright">{%= $.copyrightText %} CUSTOMIZATION</span>',
'<span class="copyright">{%= App.getVersionInfo() %}</span>',
'</div>'
]),
userText: "login name2" /* this works */

});

}
});
});


 


If it matters, I am on mobile version 3.0.4.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 5:16:58 AM