(09-21-2021, 11:14 PM)Tegwick Wrote: Quote: "In TACTIC, each sObject is represented as a table in the database."
That sounds weird. Isn't it that each sType corresponds to a table in the database and an sObject is represented as a row in the table specified by its sType? Just asking!
Yes, Search Type contains representation of sObjects. Its structure, columns, names etc.
For examle search type called Task (sthpw/task) it is built in, and this table created with tactic.
All search types are sobjects too, and can be found in search types table.
For the blog posting, i would create project first. Name it Blog.
Then create search type for posts: "blog/posts"
Make custom columns for the search "blog/posts": Title, Text, etc...
Then i can create SObject using api:
data = {"title": "First blog post Title", "text": "First blog post text"}
server.insert(search_type='blog/posts', data)
Then when it is added query it when necessary:
filters = []
server.query(search_type='blog/posts'', filters)
Any blog post can now contain Snapshots:
file_path = "c:/hello.jpg"
server.simple_checkin(search_key='blog/posts?project=blog&code=BLOG00001', context='attachment', file_path=file_path)
This all is python, but can be js, and within your web app