UX: Can you use Polymer platinum-sw to return a user message?


Is it possible to use Polymer platinum-sw-register (service worker) to return a user message to the client when an attempt to perform a database action (Create, Read, Update, Delete) is not possible due to a lack of network connection? In other words, can I detect when something is cached locally and show a toast message? Has anybody worked with this library for something like this?

I know that platinum elements have been deprecated. Also, it’s worth knowing that IBM is working on offline capabilities for the next platform release.

[Admin: To see other related posts, use the Polymer tag.]

Continue reading

Advertisements

UX: What licenses are required to develop UX Perceptive apps?


I have installed the IBM TRIRIGA application platform and it is up and running. Next, I want to develop Perceptive apps. What licenses do I need to develop Perceptive apps? Can I get a sample link or resource to start any sample apps?

[Admin: This post is related to the 08.30.16 post about how licenses work in UX, and the 12.11.15 post about the UX framework. This post is also related to the UX ArticlesUX Videos, and UX Lessons blog pages.]

Continue reading

UX: How do you create an editable query by using the UX framework?


What is a way to create an analogue of an editable report using UX framework?

You can accomplish this by doing the following:

  • 1. Create the query data source.
  • 2. In the code, create an iterator over the data (dom-repeat or iron-list).
  • 3. Either add a button for saving, or catch the on-change event in order to commit the data to the database by using the triplat-ds updateRecord method.

In newer platforms, you can look into triblock-table as well. I’ve never used it, but you can definitely create custom components inside the cells in order to make displaying data easier.

[Admin: To see other related posts, use the UX Framework tag or Perceptive tag.]

Continue reading

UX: How do you create and save a record in UX via a workflow?


I’ve got most of this worked out. So I can trigger a workflow from a UX web page. But I am stuck on how to take data created in the UX application, feed it to the workflow, place that data into record fields, and then create a draft record. This is the UX code that is feeding data back to TRIRIGA. The data is valid. I am just stumped on how to feed it into a workflow. Any ideas?

var newRec = {
triHoursNU: vFixedTotal,
triControlNumberCN: triControlNumberCN,
triDateTX: mm + “/” + dd + “/” + yyyy, 
triIdTX: triIdTX,
triNameTX: fName + ” ” + lName
};
console.log(newRec);
this.$.timeLogQueryDs.createRecord(newRec, TriPlatDs.RefreshType.BOTH, 
“createLog”, “create” ) 
.then(function(){
this.$.toastBlue2.show(); 
}.bind(this));

 

When you create a record, let’s say you have a data source called “peopleDs”, you create an object and then pass it to the create method of the data source. The names should match the data source exposed field names. I also recommend looking at the documentation for your TRIRIGA instance at: /p/web/doc.

[Admin: The same question is also posted in the main UX Framework forum. To see other related posts, use the UX Framework tag or Perceptive tag.]

Continue reading

How do you equip your TRIRIGA chariot with fierce stallions?


There’s an old metaphor originating from Plato that compares the soul to that of a chariot with a pair of winged horses. Chariots of the gods were equipped with two good horses, while us mere mortals were given one good horse and one bad, unruly horse, depicting the conflicts of the soul. Due to this imbalance, we would always face hardships. But those of us who could put that unruliness to use could potentially rise high enough to hang with the gods.

What does this have to do with IBM TRIRIGA and hanging out at TRIMAX this week? Not a whole lot, I just like to throw out fascinating metaphors. However, if you’re looking to power up your facilities “chariot” with the fiercest of good stallions, and corral the unruliness of unused data,  you may want to read on.

The five fierce stallions of 2017

When it comes to fierce stallions, why have 2 when you can have 5? And when you’re talking about investments around TRIRIGA, the more the merrier.  Here are the top 5 stallions driving the chariot of your facilities management efforts this year:

  • 1. New lease accounting standards drive compliance domination…
  • 2. Analytics help you understand the performance of your chariot…
  • 3. Cloud isn’t just for mythical gods…
  • 4. Mobility enables the business to soar from anywhere…
  • 5. User experience (UX) drives Herculean engagement…

[Admin: What does TRIRIGA mean? A tririga (trī-ˈrē-gə) is a team of three horses yoked three abreast, commonly associated with the use of chariots during the Roman Empire. To see other related posts, use the TRIMAX tag.]

Continue reading

UX: How do you put a conditional check in TRIRIGA UX view?


I am new to the IBM TRIRIGA UX framework. My requirement is: “If a user contains a profile image, then display the uploaded image, or else, display the default image.” How can I put this conditional check inside the view.html page?

This doesn’t have an “else” condition, therefore just inverse your condition in another “dom-if”.

<template is=”dom-if” if=”{{condition()}}”>displayed when condition() is true

</template>

[Admin: To see other related posts, use the UX Framework tag or Perceptive tag.]

Continue reading