FAQ Database Discussion Community


App Level Function

angularjs,resolve
I'm building an App that requires authentication and I need to check if the user is authenticated when changing routes before instantiating the route Controller, so I need a function to retrieve the logged user from the server with $http that I need to call in the resolve property of...

resolve macro variables for saving/naming a dataset in SAS

macros,sas,naming,resolve
I have problem saving a dataset using macro variables to a desired directory. Basically, I want to save the dataset "_est" to library "sret" according to the values of &var and &age. I wrote the following code: %let var=k; %let age=2; ... ... data sret.est_&var&age._b3; set _est; run; What I...

UPDATED - calculating the tuition total

java,syntax,types,resolve
With help I got the program to run and answer the questions but it does not show the tuition total. Thanks for reading. Stackoverflow says I need to post more details so I am just typing for the details. import java.util.Scanner; public class Student { private static String FirstName; private...

Nested promises in ui-router resolve

angularjs,nested,angular-ui-router,promise,resolve
I have been struggling for a while with the following problem: I would like to get some data before the view shows, (resolve). But some of the data is dependend on the result of another promise. It goes like this: I get the job id (index) from the $stateParams and...

Angularjs: How to inject dependency from resolve routeProvider

angularjs,routes,dependencies,code-injection,resolve
I have a problem injecting resolve parameters from the routing into the controller. I'm setting the resolve value to an object {name: 'Banner', slug: 'banner'}, but I get an error. App.js var app = angular.module('CMS', ['fields', 'ngRoute']); app.controller('ModuleController', ['$http', 'properties', function($http, properties) { var module = this; module.properties = properties;...

Angular Routing - Wait for previous resolve

angularjs,angular-routing,resolve,route-provider
I have an angular route as below: $routeProvider.when('/admin/:one/:two/:three?', { templateUrl: '/app/partials/admin.html', controller: 'AdminCtrl', resolve: { login: function(LoginService) { return LoginService.login(); }, admin: function($route, LoginService) { return LoginService.admin($route.current.params.one, $route.current.params.two, $route.current.params.three); } } }); The issue is that the second resolve, admin, depends on the first resolve completing (LoginService.admin() calls ensureAuthenticated, which...

Cannot resolve method getChildren.addAll();

java,javafx,resolve
Okay, I am not sure if I am asking this in the right place but I am hoping someone here can help me. So, I am a beginner at Java and I am trying to make a JavaFX application but my Layout 1 "getChildren.addAll(label1, button1);" is being labeled as an...