Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7073959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:59:33+00:00 2026-05-28T05:59:33+00:00

I am using WaveMaker 6.3.2GA. There is a UserName and Password Textbox and then

  • 0

I am using WaveMaker 6.3.2GA.
There is a UserName and Password Textbox and then Sign in button.
I’ve created Java Service and Service Variable for it.
Bind its properties with related textboxes.
On Button’s click event attached service variable and
on service variable’s onSuccess event, I’ve called Javascript function which navigate to the admin page if user is admin.

But its not working on button’s click event, it stay on home page only. I’ve imported project into Eclipse. I am not getting where’s the mistake? Did I forget to set somewhere? If import the project into Eclipse then is there anything which we have to set in eclipse? Can anyone please help me here?

Below is the code of Javascript function which I wrote in WaveMaker:

loginServiceSuccess: function(inSender, inDeprecated)    {        

try {
  
   console.info( this.LoginServiceVar.data.role);
  
  if("admin" == this.LoginServiceVar.data.role){
    //this.goToAdminHomepage.update();
    this.goToAdminHome.update();
  }else if("employee" == this.LoginServiceVar.data.role){
    this.goToemp.update();
  
  }
  app.userId = this.LoginServiceVar.data.id;
  
  console.info("logged in user" + app.userId);
  
} catch(e) {
  console.error('ERROR IN loginServiceSuccess: ' + e); 
}         
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:59:34+00:00Added an answer on May 28, 2026 at 5:59 am

    Are you using Firebug(or equivalent) in your browser to confirm that value of “this.LoginServiceVar.data.role” is not null?
    I would ask the same regarding your Java service – are you stepping through the code with the Eclipse debugger? If not, a quick way to check if there is an error in your Java service is to check the wm.log. This file is located in the “logs” dir at the same subdir level as your Wavemaker/projects dir.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using android 2.3.3, I have a background Service which has a socket connection. There's
Using C#, I need a class called User that has a username, password, active
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button
Using Entity Framework CodeFirst, how do I create a created datetime column that gets
Using restlet, I want to make a post to android's c2dm service. I have
Using Java, how can I extract all the links from a given web page?
Using delphi 2010, i am wondering if there someway to escape the following string
Using VBScript, I want to add an additional button to Notepad labeled send .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.