I have tree structure like
Tree base
Customer info
Password info
I have two different views for Customer info and password info.
But i want to access the data from customer info to password info. how can I do it?
I am loading two different views on click on tree node.
e.g if i click on customer info, then CustomerInfo.java (view) is loaded and if I click on password info, then passwordInfo.java (view) is loaded.
But in this case how can I access data loaded in customer info view?
First, You will need Blackboard event system. On tree node click (probably inside tree value change listener), you fire an event with the data to be passed/shared as payload.
Second, modify your views to listen to this event. Inside the over-ridden listener method, access the payload of the event, and do what you want to do with it.
I Hope it helps.
Related
How do get a Google App Make application open to not only a specific page/form in Google App Maker but also a specific record within that page?
There are different techniques to achieve this behavior and for sure the implementation will depend on your requirements.
if you want your app's URL to display current state and make this URL shareable, then you need to read this: Integration between different Google Appmaker Apps
if you don't care about shareable URL and you have common datasource for your list and details pages, then you can just update selected record in your list and navigate user to the details page:
// row's or row descendant's onClick event
app.datasources.ItemsList.selectKey(widget.datasource.item._key);
app.showPage(app.pages.ItemDetails);
if you have dedicated datasource for you details page, then your code can look like this:
// row's or row descendant's onClick event
var detailsDs = app.datasources.ItemDetails;
detailsDs.unload();
detailsDs.query.filters._key._equals = widget.datasource.item._key;
app.showPage(app.pages.ItemDetails);
You need to unload details datasource to prevent blinking (showing previous item, if you are viewing item by item). By the way, you can also unload datasource in onDetach event of the details page.
This page
http://azure.microsoft.com/en-us/documentation/articles/app-insights-web-track-usage-custom-events-metrics/#authenticated-users
Show how to have login information in the section "Authenticated users".
But how can I see this information in Application Insight after that
I do not see user anywhere in the custom event properties for events, it seems to be the internal field that's collected but not directly exposed in the view because most of the time this "auto-collected" user would be simply an auto-generated GUID....
You can take a look at the users summary on "Usage Analytics/Users" view as well as in Metric Explorer (just select the metrics about app users like "user accounts"...)
You should be able to search for user in the Diagnostic Search but only if you specify the user name you are looking for in the search - you'll get events/traces and so on for that particular user.
Also, you can try to submit authenticated user as a custom property on the event instead of (in addition to) the embedded property, in this case you should definitely see if as part of the properties in UI but this leads to a duplication of the value inside the event (internal + custom)...
You can make a query with Analytics. The result of your query should return a column called user_AuthenticatedId.
I have events (sport trainings), created manually. Users can register for that events with Entity Registration module.
What I need is a list of deleted registrations. I can create a rule "after deleting a registration create a new entity" with a date field (when registration was deleted) and a field contains user. But problem is... I don't know, how to store name of that related event.
Is there a way to store a name or date of related event, when registration was deleted? How can I do it?
It has been a while since I have messed with entity registration, but if I am not mistaken, isn't there a registration state option?
This may be a bit of a workaround, but could you disable the ability for users to delete a registration outright, but allow them to change the state of their registration to a state called "Deleted"? That way you would still have the registration and still have all of the data associated with it.
For a more streamlined method, you could add a button or something that runs an action that changes that user's registration to state "Deleted" but no button to change it back, so they cannot un-delete (assuming you don't want them to be able to un-delete).
We have some views for an mvc application.we want to give save functionality on a particular view which will caputre everything from that view and save it in a folder on server eithier in pdf or html file type.
Save functionality should be called when user clicks on button on view.How can we achieve this.
Thanks in Advance.
First your view must be linked to your data model.
To manage the sync between both either you use binding mechanism if your framework supports it or you implement a observer/observable pattern.
Next you have to write an event handler to respond to the save event triggered by the save button.
This event handler must call the save functionality.
To be more precise you should tell which language/framework you are using.
I am new to asp.net. I have a details view control on my page. I use linq to sql. My details view is an admin panel for data entry page. So some members will enter some news to my database. I want to use "Writer" Data Field to be filled automaticly with the current logged user. How can I do that?
Thanks
You will simply need to inject the username into the field at some point.
There is not a point-n-click drag-n-drop solution to this case, and there are many ways to accomplish this and to go into further detail is likely not necessary.
Just get the value into the textbox or field as the page is served where L2S can pick it up on the postback.