hide some text from key value
Moderator: Martin
hide some text from key value
hi all
I think this is may not possible. if key value is(in map) "today is 8th July". how can I ignore the text "today is"?
I want to get only the text "8th July" in Statusbar .
thanks from record4
I think this is may not possible. if key value is(in map) "today is 8th July". how can I ignore the text "today is"?
I want to get only the text "8th July" in Statusbar .
thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
Re: hide some text from key value
Using key in map require exact match. If you need only partial match, you need to loop upon the key and can use either regex or simple contains(). I don't know yet, how you want to ignore the text "today is". Do you mean to search for "today is" and then remove it from the search result, or do you mean to search only for "8th July" in the key and then remove any other text from the key, which is not the keyword?
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: hide some text from key value
hi desmanto
because I want to using this flow for multiple reminders. working very amazing and fantastic. not only one I am creating reminders more than one with one global variable date and time.now i am saying that triggertime is the map key and key value is triggertime ++ my reminder. in notification I am getting triggertime +reminder . I want to ignore the triggertime in notification.
for example =
map key = triggertime
key value = triggertime pay electricity bill (my reminder).
I want to get the pay electricity bill text in notification. I want to ignore the text triggertime in notification.
thanks from record4
because I want to using this flow for multiple reminders. working very amazing and fantastic. not only one I am creating reminders more than one with one global variable date and time.now i am saying that triggertime is the map key and key value is triggertime ++ my reminder. in notification I am getting triggertime +reminder . I want to ignore the triggertime in notification.
for example =
map key = triggertime
key value = triggertime pay electricity bill (my reminder).
I want to get the pay electricity bill text in notification. I want to ignore the text triggertime in notification.
thanks from record4
- Attachments
-
- flow_group_REMINDER.xml
- multiple reminders
- (55.35 KiB) Downloaded 600 times
Re: hide some text from key value
That is one smart way to use the glovar map with glovardt. It saves you tons of glovar and allow multiple glovardt addition.
Actually you can ignore the triggertime part using regex. But instead of solving the problem, why don't just create the map as you want from the beginning.
From the create reminder flow, you have the script
You add the {schedule} inside the value. If you don't add it, you can have the {note} alone when using the glovar. The Script will become
This doesn't affect your glovar key, it simply affect the value. And you only need to save the note, as the triggertime already included in the key (so no need to save it twice).
Actually you can ignore the triggertime part using regex. But instead of solving the problem, why don't just create the map as you want from the beginning.
From the create reminder flow, you have the script
Code: Select all
schedule=value;
addMapEntry(global_4,schedule,"{schedule} {note}");
Code: Select all
schedule=value;
addMapEntry(global_4,schedule, note);
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: hide some text from key value
hi desmanto
I want to get the reminder Note by sorting the values. so I need the triggertime in note key value.
thanks from record4
I want to get the reminder Note by sorting the values. so I need the triggertime in note key value.
thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
Re: hide some text from key value
But you sort the key, not the value. Since the key contains the schedule time too, then you already get what you need by sorting the key, no need to sort the value anymore.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: hide some text from key value
hi desmanto
because I want to convert the key value into global variable date and time.
thanks from record4
because I want to convert the key value into global variable date and time.
thanks from record4
Re: hide some text from key value
You need the glovar datetime, but that glovar datetime already provided by the key, not the value. Just try to remove the {schedule} and test to create a reminder and see how it works out.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: hide some text from key value
hi desmanto
I can't understand much. please modify the flow and post.
thanks from record4
I can't understand much. please modify the flow and post.
thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
Re: hide some text from key value
I can' test your flow, since you have other glovar depend on it too. You simply have to edit the script at the flow Create Reminder, it is the 5th element, after the expression. Remove the {schedule} as shown at my post 4.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.