Generate the list of Calendar dates - mysql

I am having a list of dates , but the requirement is to enable only the dates I have. I am using Silk UI calendar control and it has the option of giving the disabled dates. I am not sure how to generate the list of disabled dates . I have the dates since last year., Can anyone please help me with this. I am new to outsystems and in a real quick need. Thanks

I am not sure I understand what you are asking. Maybe you could provide a bit more context or even attach a sample that isolates what you are trying to do.
In any case I looked at the Silk UI Calendar control's documentation and here's what I found about the parameter you're referring to:
String containing disabled days. If the string is empty, all days are active. Example: "2015-06-15, 2015-06-18, 2015-06-19, 2015-06-20"
You can find more and documentation at Silk UI's web site: https://labs.outsystems.net/silkui/
Hope it helps!
Cheers!

Related

fullcalendar startParam format v3.0.1

with fullcalendar v3.0.1 I try to set initial date range with this setting:
startParam: '2017-01-01 00:00:00',
but, if I go back into the past with arrows button, I can back to 2016 and previous years...
What makes you think that startParam restricts when the calendar can go back to? It's a parameter passed to the server when new events are fetched which tells the server the start date from which events should be returned in the current request - generally it will correspond to the start date of the current view in the calendar. And if you look at the docs for this property: https://fullcalendar.io/docs/event_data/startParam/, it mentions nothing about what you describe. I don't understand why you thought this would work.
If, for some reason, you want to stop users going back in time before a certain date, there is no currently official supported way to do this. This issue log: https://github.com/fullcalendar/fullcalendar/issues/429 suggests that support may arrive in a future version, but at present you will need to work around it.
To be honest though I'm not sure why you really would need to do this. If you want to prevent users seeing any events before a particular date, the simplest way would be not to provide any event data to the calendar which is before that date - then if the user moves to those earlier dates, the calendar would simply be blank.
If you really feel you need to do this though, the only way I can think of would be to handle the viewRender event, and if the first day displayed in the view is on or before your minimum date, disable the "previous" button, or something.

paypal link for subscription with start date

I found link for making buy now payments using PayPal. For example, the following link is used for payment for Buy Now buttons:
https://www.paypal.com/cgi-bin/webscr?business=example#yourwebsite.com&cmd=_xclick&currency_code=USD&amount=99&item_name=productname
where it uses some variables like business(for receiver's email), amount, item_name,etc..,
I am looking for a link just like the above for subscriptions with start date, i.e, a valid variable for specifying the subscription to start. I Googled it and I found the variable subscr_date can be used for specifying the start date. but I don't know how to make a proper working link for subscription with start date.
I think you're confusing the two. PayPal does provide a query string button for Buy Now but I don't recall ever seeing one for subscriptions. Instead, those buttons typically contain a form with all of your options.
PayPal does have a simpler solution now. Their Javascript Buttons library appears to greatly simplify this process. I think this might do what you want it to.
<script src="paypal-button.min.js?merchant=YOUR_MERCHANT_ID"
data-button="subscribe"
data-name="My product"
data-amount="1.00"
data-recurrence="1"
data-period="M"
async
></script>
If that still won't work, you will need to use the Payments Standard HTML, which also supports recurring payments

GAS: Alternative to using ScriptProperties.getProperty which is needed to retrieve events by ID

I am learning GAS. The app script on the Quickstart: Managing Responses for Google Forms uses the depecrated Class&method:ScriptProperties.getProperty(key) ie.ScriptProperties.getProperty('calId'). I have reported this as an issue to Google. Is there a better way to code this example and achieve similar results?
// Store the ID for the Calendar, which is needed to retrieve events by ID.
ScriptProperties.setProperty('calId', cal.getId());
You'll want to use Properties.setProperty(key, value) instead of ScriptProperties.setProperty(key, value) The reason is because The "Properties Service" has now replaced Google's ScriptProperties class. Here's my source: https://developers.google.com/apps-script/guides/properties
The other answer is almost right..., it just uses a shortcut from the documentation without defining the shortcut itself.
The syntax is as follows
PropertiesService.getScriptProperties().setProperty(key, value)
And all the similar methods as described in the documentation. (getProperty,setProperties , etc...)
The usage is the same, you can use find/replace in your script to simply update every occurrences .

determining if a status update is a retweet using api 1.1

I want a simple, robust way to identify retweets in a hashtag search using twitter api 1.1.
For example, if I send the following request with the proper authentication:
https://api.twitter.com/1.1/search/tweets.json?q=%23stackoverflow
I'll get the last 15 tweets tagged with #stackoverflow.
It looks like only retweeted status updates have the 'retweet_status' property. Is checking to see if the tweet has a 'retweet_status' property a reliable way to determine if it is a retweet?
'retweet' and 'retweet_count' don't give me what I need.
sounds rather like you've answered your own question. retweeted_status is present when the retweeter has used Twitter's official Retweet function.
However people still to the old style RT: <quote> approach which won't give you any solid data bindings in the data returned from the API. The only way to handle these is to compare the text and see if the original text is contained. If they've modified the text then you're stuck, but then if they've modified the text then technically it's not a Retweet - it's just plagiarism ;)
Thought I'd share my solution...
if (eventMsg.retweeted_status == null) {
//run code
}

What is the difference between the BU and ZK OK codes in SAP macro

I am trying the post an invoice to SAP using the F-47 transaction and using SHDB to record the transaction and learn how it works. I see there that sometimes BU and ZK BDC OK codes are used. I would like to understand the difference between them, but could not find any official documentation. Please, explain the difference between the two?
I found the meaning of some of the status codes. I post it here, so I can remember:
/00. Enter
/AB Go to overview
=ZK Go to additional information
=ENTE Enter (don't know exactly what is difference between /00)
=PI select cursor location
=STER Go to taxes
=DELZ delete cursor
=GO continue
=BU post (save)
/EEND end processing
=Yes select "yes" from message box
=BP park (save)
=ENTR Enter (don't know exactly what is difference between =ENTE or /00)
=AE save when changing document
=BK change document header (parking or posting parked document)
=P+ next page
=BL delete parked document
A BDC_OKCODE indicates which action is (will) be executed on a screen (things like save, back, exit etc). The BU code is used for a SAVE function (like in MM01 transaction). Sorry but I cannot recall to which function ZK maps to. Obviously their difference lies in the fact that they map to different functions. You can still find out which function each button utilizes by using System->Status->GUI status.
By the way, BTCI transactions are not fully robust- minor changes in GUI flow let your program break. Error handling / analysis is tedious.... DId you have a look to posting methods more preferably? E.g. like BAPI_* function modules? With the help of LSMW you can browse for different input methods and use them later standalone. Or you can use transaction BAPI directly.