0

I am searching one thing with the date like what is happening tomorrow and I am getting result for tomorrow but again if I am saying what is happening, then too it is taking tomorrow's date.

My training for tomorrow is time.DateTimeExpression and my input is dateTimeExpression and type is time.DateTimeExspression. I have read the document about making a concept transient but how to make this time as transient?

based on the last comment, I am adding the training pics

enter image description here

Rahul Gupta
  • 972
  • 11
  • 29

2 Answers2

1

Unless you need all attributes of DateTimeExpression, you don't have to use it. Your input could be of type DateTime or Date too.

But if you have to use DateTimeExpression as input, you can extend the type and add transient feature to it

structure (MyDateTimeExpression) {
  role-of(viv.time.DateTimeExpression)
  features {
    transient
  }
}

Now, when you use MyDateTimeExpression, it will be transient.

  • If I am defining this structure and setting input type of this structure, then what will be value for Tomorrow or Next Week in training? because If I am setting value for Tomorrow to `MyDateTimeExpression` then it is showing me illegal plan. same is happening when i am assigning it to `time.DateTimeExpression`. – Rahul Gupta Feb 22 '19 at 13:10
  • My structure is same as you have given, just this change `structure (Date)` and input is dateTimeExpression and type is `Date` – Rahul Gupta Feb 22 '19 at 13:30
  • 1
    Make sure that your tags have both the role (MyDateTimeExpression) and value (DateTimeExpression). – BixbyDevSupportOne Feb 22 '19 at 17:54
0

I've created an example capsule that may help. Here is an article on the Bixby Developer Community Forum which provides the example as an attachment along with a short description.

Ameya
  • 880
  • 6
  • 13