2020年4月30日木曜日

FileMaker URLクエリパラメータを作成

FileMaker



こんな感じのURLクエリパラメータを作成

?timeMin=2020-04-01T00:00:00%2B09:00&timeMax=2020-04-01T23:59:59%2B09:00&updatedMin=2020-04-01T00:00:00%2B09:00



「関数:List ( )」で改行区切りのリストを作成し、

先頭に「?」を追加、

改行を「&」に置換。



Let([
¢OptionalQueryParameters=
List ( 
If ( not IsEmpty ( $timeMin ) ; "timeMin=" & GetAsURLEncoded ( $timeMin ) );
If ( not IsEmpty ( $timeMax ) ; "timeMax=" & GetAsURLEncoded ( $timeMax ) );
If ( not IsEmpty ( $updatedMin ) ; "updatedMin=" & GetAsURLEncoded ( $updatedMin ) )
)
];
"?" & Substitute ( ¢OptionalQueryParameters ; ¶ ; "&" )
)

0 件のコメント:

コメントを投稿