As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Have you tried implementing all the queries mentioned on this link in Swift 4 directly? Please elaborate on what you are trying to achieve so that I can try implementing it in my environment.
let predicateDate = NSPredicate(format: "lmt >= %@", dateFormat)
let sortDescriptor = NSSortDescriptor(key: "lmt", ascending: true)
let predicateAdmin = NSPredicate(format: "_acl.creator == %@", Kinvey.sharedClient.appKey!)
let predicate = NSCompoundPredicate(andPredicateWithSubpredicates: [predicateDate, predicateAdmin])
let query = Query(predicate:predicate,sortDescriptors:[sortDescriptor])
P
Pranav J
said
about 5 years ago
Answer
Wasim,
Have you tried implementing all the queries mentioned on this link in Swift 4 directly? Please elaborate on what you are trying to achieve so that I can try implementing it in my environment.
Thanks,
Pranav
Z
Zayn Sheikh
said
about 5 years ago
Hi!
I tried Swift 4 directly. It is not of much use on iOS 11.3.
Wasim Akram
Hi Pranav,
I am trying to implement in swift 4. but I did not find pseudo code related to this
Please help me.
KCSQuery *dateQuery = [KCSQuery queryOnField:KCSMetadataFieldLastModifiedTime usingConditional:kKCSGreaterThan forValue:myDate];
KCSQuerySortModifier* sortingDate = [[KCSQuerySortModifier alloc] initWithField:KCSMetadataFieldLastModifiedTime inDirection:kKCSAscending];
[query addSortModifier: sortingDate];
KCSQuery *mainQuery = [KCSQuery queryOnField:KCSMetadataFieldCreator withExactMatchForValue:[[KCSClient sharedClient] appKey]];
KCSQuery *actualQuery = [KCSQuery queryForJoiningOperator:kKCSAnd onQueries: mainQuery, dateQuery, nil];
Wasim,
Have you tried implementing all the queries mentioned on this link in Swift 4 directly? Please elaborate on what you are trying to achieve so that I can try implementing it in my environment.
Thanks,
Pranav
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstWasim Akram
Hi Pranav,
I converted above objective c code to swift but I am getting nil values
Fields: nil
Predicate: Optional(lmt >= "2005-10-09T18:30:00.000Z" AND _acl.creator == "<kinvey_id>")
Sort Descriptors: Optional([(lmt, ascending, compare:)])
Skip: nil
Limit: nil
let dateFormat = "2005-10-09T18:30:00.000Z"
let predicateDate = NSPredicate(format: "lmt >= %@", dateFormat)
let sortDescriptor = NSSortDescriptor(key: "lmt", ascending: true)
let predicateAdmin = NSPredicate(format: "_acl.creator == %@", Kinvey.sharedClient.appKey!)
let predicate = NSCompoundPredicate(andPredicateWithSubpredicates: [predicateDate, predicateAdmin])
let query = Query(predicate:predicate,sortDescriptors:[sortDescriptor])
Pranav J
Wasim,
Have you tried implementing all the queries mentioned on this link in Swift 4 directly? Please elaborate on what you are trying to achieve so that I can try implementing it in my environment.
Thanks,
Pranav
Zayn Sheikh
Hi!
I tried Swift 4 directly. It is not of much use on iOS 11.3.
---------------------------------------------------------------------
Zayn Appvn Jio4GVoice 3DS Emulator
Cherry
It is a significant update than swift 3. Must have upgrade.
__________________________
Cherry Blokada adblocker Newpipe
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics