https://github.com/simplicitesoftware/module-questionsandanswers
Q&A module
https://github.com/simplicitesoftware/module-questionsandanswers
Last synced: 4 months ago
JSON representation
Q&A module
- Host: GitHub
- URL: https://github.com/simplicitesoftware/module-questionsandanswers
- Owner: simplicitesoftware
- Created: 2020-01-22T15:49:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T16:14:03.000Z (over 4 years ago)
- Last Synced: 2025-07-08T11:05:39.497Z (11 months ago)
- Language: HTML
- Size: 990 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

* * *
`QuestionsAndAnswers` module definition
=======================================
[](https://sonarcloud.io/dashboard?id=simplicite-modules-QuestionsAndAnswers)
### Introduction
This is a sample **Q&A** application (backend and frontend).
### Import
To import this module:
- Create a module named `QuestionsAndAnswers`
- Set the settings as:
```json
{
"type": "git",
"origin": {
"uri": "https://github.com/simplicitesoftware/module-qa.git"
}
}
```
- Click on the _Import module_ button
### Configure
In order to have the frontend working the password for the
webservices-only user `qa` must be `simplicite`.
This can be acheived by importing the following XML:
```xml
UserPwd
update
qa
simplicite
```
### Load data
Sample data is provided as a module's dataset.
Open this dataset and click on the _Apply_ button after having imported the module and made a full clear cache.
`QAQuestionAndAnswerHistoric` business object definition
--------------------------------------------------------
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `row_ref_id` link to **`QAQuestionAndAnswer`** | id | yes* | | | Record row ID |
| `row_idx` | int(11) | yes* | yes | | History record index |
| `created_by_hist` | char(100) | yes* | | | Created by |
| `created_dt_hist` | datetime | yes* | | | Created date |
| `qaQaaQuestion` | html(1000000) | yes* | | | Question |
| `qaQaaAnswer` | html(1000000) | yes | yes | | Answer |
`QASection` business object definition
--------------------------------------
Section
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `qaSecNumber` | char(20) | yes* | yes | | Section number |
| `qaSecParent` link to **`QASection`** | id | | yes | | Parent section |
| _Ref. `qaSecParent.qaSecNumber`_ | _char(20)_ | | | | _Section number_ |
| `qaSecTitle` | char(100) | yes | yes | | Section title |
| `qaSecDescription` | html(1000000) | | yes | | Description |
`QAQuestionAndAnswer` business object definition
------------------------------------------------
Question and answer
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `qaQaaSection` link to **`QASection`** | id | yes* | | | Section |
| _Ref. `qaQaaSection.qaSecNumber`_ | _char(20)_ | | | | _Section number_ |
| `qaQaaKeywords` | multi(1000) using `QA_QAA_KEYWORDS` list | | | | Keywords |
| `qaQaaDate` | datetime | | | | Date |
| `qaQaaQuestion` | html(1000000) | yes* | | | Question |
| `qaQaaAnswer` | html(1000000) | yes | yes | | Answer |
| `qaQaaDocument` | document | | yes | | Document |
| `qaQaaURL` | url(255) | | yes | | URL |
### Lists
* `QA_QAA_KEYWORDS`
- `KEYWORD1` Keyword 1
- `KEYWORD2` Keyword 2
- `KEYWORD3` Keyword 3
`qa` external object definition
-------------------------------
Questions and answers frontend