Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 4 online users. » 0 Member(s) | 1 Guest(s) Applebot, Bing, Google
|
Latest Threads |
Finetuning the way you se...
Forum: coreBOS Development
Last Post: alexandy40d
12-06-2024, 07:38 AM
» Replies: 4
» Views: 8,140
|
MariaDB Version
Forum: Administrator Support
Last Post: joebordes
11-01-2024, 11:49 AM
» Replies: 1
» Views: 627
|
Product Catalog / parts c...
Forum: Modules/Extension Support
Last Post: joebordes
09-15-2024, 09:40 AM
» Replies: 1
» Views: 1,107
|
Challenges and Best Pract...
Forum: coreBOS Development
Last Post: wishforbes
08-30-2024, 04:21 PM
» Replies: 0
» Views: 719
|
PRODUCTS IN ACCOUNTS BY O...
Forum: User Support
Last Post: jonathanmoore858
08-03-2024, 04:14 PM
» Replies: 4
» Views: 2,765
|
Zapier | Integration
Forum: Modules/Extension Support
Last Post: bernardgbailey
07-29-2024, 11:45 PM
» Replies: 7
» Views: 9,846
|
Versión PHP recomendada
Forum: International
Last Post: joebordes
07-04-2024, 05:42 PM
» Replies: 7
» Views: 3,328
|
Could Someone Give me Adv...
Forum: Open Discussions
Last Post: joebordes
06-27-2024, 08:32 AM
» Replies: 1
» Views: 1,705
|
RESTRICTED FILE
Forum: Administrator Support
Last Post: inspectorflint
06-22-2024, 08:08 AM
» Replies: 7
» Views: 5,659
|
GENDOC imágenes
Forum: Open Discussions
Last Post: joebordes
06-02-2024, 05:11 PM
» Replies: 4
» Views: 2,037
|
|
|
My Field Map tries to transport a webservice ID |
Posted by: Guido1982 - 03-21-2019, 08:35 AM - Forum: coreBOS Development
- Replies (3)
|
|
I am creating a workflow that creates an entity of recordtype A (custom module I wrote) when an asset is created for the first time. I filled out the mandatory fields in the workflow screen and have also setup a Field Business Map that more closely determines which fields should be transported from the Asset to the record to be created FROM that Asset.
Now when creating the asset I get the 'Sorry! Attempt to access restricted file' message. I turned on debugging and found out that the workflow tries to create the 'recordtype A', it tries to insert into the entitytable some values of which one is in webservice format. This is a SalesOrder ID that I get from the Asset through a FIELD directive in the Business Map.
The field directive looks like this
Code: <field>
<fieldname>related_so_id</fieldname>
<Orgfields>
<Orgfield>
<OrgfieldName>assets_related_soid</OrgfieldName> {Field I created on Assets}
<OrgfieldID>FIELD</OrgfieldID>
</Orgfield>
</Orgfields>
</field>
I tried setting it to:
Code: <field>
<fieldname>related_so_id</fieldname>
<Orgfields>
<Orgfield>
<OrgfieldName>$(assets_related_soid : (SalesOrder) salesorderid)</OrgfieldName>
<OrgfieldID>TEMPLATE</OrgfieldID>
</Orgfield>
</Orgfields>
</field>
Which managed to create the new record but still failed to transport the salesorderid from the Asset to the new record.
Beware
This BusinessMap does work (with the first code example). When I manually create a new 'record A' type from the asset, the map does its job, also correctly in transporting the salesorder ID from the Asset to the new record.
|
|
|
Basic concept of out unit tests |
Posted by: Guido1982 - 03-20-2019, 09:12 PM - Forum: coreBOS Development
- Replies (1)
|
|
OK, so we have the test repository where Joe explained how you can set up the test repository in your development installation and how you should execute the unit tests. Those unit tests start at the phpunit.xml file and collect all files in the directories mentioned I presume? Then it executes all the methods of all the classes Each class should extend the TestCase class.
I want to write a blogpost about this after writing some tests myself. What I want to know is, what do we want to do here? Is there a certain guideline for the directories and files? Do we want to write tests of which we know they should pass or do we want to test known bugs so we can remind ourselves of what we still need to fix?
Is there any other etiquette that I should know of?
|
|
|
Suggestion - Application_User_Onlyby |
Posted by: rslemer - 03-20-2019, 04:22 PM - Forum: Administrator Support
- No Replies
|
|
Similar a Application_User_SortBy created a new Global Variable for listing only User for specific field
Because, in many cases, user only need setting, a task or registry, for example, for a specific departament
For example, a Tecnical Area, normaly choose a user in Support Time, Commercial area, for a Commercial time, etc ...
When system has many user, for example, 100 users, selecting a name in assigned to is not so easy ....
|
|
|
|