I have a Custom for that looks like this....
<div class="aw-data-item" >
<table class="page_three" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<th class="solution_solution">Solution</th>
<th class="solution_price">Price</th>
<th class="solution_unit">Unit</th>
<th class="solution_employee"> </th>
</tr>
<tr>
<td class="solution_text" rowspan="5" valign="top">{SolutionText}</td>
<td class="solution_price">{SolutionPrice}</td>
<td class="solution_unit">{DefaultCurrency}</td>
<td class="solution_employee" rowspan="5" valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="#"><img src="images/edit.png" alt=""> Edit</a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href="#"><img src="images/delete.png" alt=""> Delete</a></td>
</tr>
</table></td>
</tr>
<tr>
<td class="solution_price">{PrimaryPrice}</td>
<td class="solution_unit">{PrimaryCurrency}</td>
</tr>
<tr>
<td class="solution_price">{SecondaryPrice}</td>
<td class="solution_unit">{SecondaryCurrency}</td>
</tr>
<tr>
<td class="solution_price"> </td>
<td class="solution_unit"> </td>
</tr>
<tr>
<td class="solution_price"> </td>
<td class="solution_unit"> </td>
</tr>
</table></td>
</tr>
</table>
</div>
I then want to set the link to Edit the record . So I change the above to this....
<div class="aw-data-item" >
<table class="page_three" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<th class="solution_solution">Solution</th>
<th class="solution_price">Price</th>
<th class="solution_unit">Unit</th>
<th class="solution_employee"> </th>
</tr>
<tr>
<td class="solution_text" rowspan="5" valign="top">{SolutionText}</td>
<td class="solution_price">{SolutionPrice}</td>
<td class="solution_unit">{DefaultCurrency}</td>
<td class="solution_employee" rowspan="5" valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="#" onclick="AwareApp.startProcessFromForm ('<<EditSolution>>', ‘main’, this, false)"><img src="images/edit.png" alt=""> Edit</a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href="#"><img src="images/delete.png" alt=""> Delete</a></td>
</tr>
</table></td>
</tr>
<tr>
<td class="solution_price">{PrimaryPrice}</td>
<td class="solution_unit">{PrimaryCurrency}</td>
</tr>
<tr>
<td class="solution_price">{SecondaryPrice}</td>
<td class="solution_unit">{SecondaryCurrency}</td>
</tr>
<tr>
<td class="solution_price"> </td>
<td class="solution_unit"> </td>
</tr>
<tr>
<td class="solution_price"> </td>
<td class="solution_unit"> </td>
</tr>
</table></td>
</tr>
</table>
</div>
Clearly I am doing something wrong because when I save it, Aware truncates the code and I am left with only this....
<div class="aw-data-item" >
<table class="page_three" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<th class="solution_solution">Solution</th>
<th class="solution_price">Price</th>
<th class="solution_unit">Unit</th>
<th class="solution_employee"> </th>
</tr>
<tr>
<td class="solution_text" rowspan="5" valign="top">{SolutionText}</td>
<td class="solution_price">{SolutionPrice}</td>
<td class="solution_unit">{DefaultCurrency}</td>
<td class="solution_employee" rowspan="5" valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="#" onclick="AwareApp.startProcessFromForm ('<<EditSolution>>'
Can anyone please suggest what I am doing wrong here?
Starting Process from Custom Form
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Starting Process from Custom Form
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Hi Rennur,
That did not fix.
I have spent hours and tried many variants.....
As you suggested....no go
<td><a href="#" onclick="AwareApp.startProcessFromForm ('<<EditSolution>>', 'main', this, false)"><img src="images/edit.png" alt=""> Edit</a></td>
from other posts on the forum.....such as...
<td><a href="javascript:AwareApp.editObject('Solution',<<Solution.ID>>,'main');"><img src="images/edit.png" alt=""> Edit</a></td>
<td><a href="javascript:AwareApp.editObject('Solution',<<Solution.ID>>,'main');">Edit</a></td>
<td><a href="javascript:AwareApp.editObject('Solution',1234,'main');"><img src="images/edit.png" alt=""> Edit</a></td>
<td><a href="javascript:AwareApp.editObject('Solution',1234,'main');">Edit</a></td>
plus a bundle more....
Every time the code gets truncated after the first argument of the AwareApp call as soon as I save it.
The only one that saves ok is <td><a href="#"><img src="images/edit.png" alt=""> Edit</a></td>
As soon as I modify the href is bombs.
Have tried reconstructing from every level....form cell, form section and the form.
no go.
Doing my head in!
That did not fix.
I have spent hours and tried many variants.....
As you suggested....no go
<td><a href="#" onclick="AwareApp.startProcessFromForm ('<<EditSolution>>', 'main', this, false)"><img src="images/edit.png" alt=""> Edit</a></td>
from other posts on the forum.....such as...
<td><a href="javascript:AwareApp.editObject('Solution',<<Solution.ID>>,'main');"><img src="images/edit.png" alt=""> Edit</a></td>
<td><a href="javascript:AwareApp.editObject('Solution',<<Solution.ID>>,'main');">Edit</a></td>
<td><a href="javascript:AwareApp.editObject('Solution',1234,'main');"><img src="images/edit.png" alt=""> Edit</a></td>
<td><a href="javascript:AwareApp.editObject('Solution',1234,'main');">Edit</a></td>
plus a bundle more....
Every time the code gets truncated after the first argument of the AwareApp call as soon as I save it.
The only one that saves ok is <td><a href="#"><img src="images/edit.png" alt=""> Edit</a></td>
As soon as I modify the href is bombs.
Have tried reconstructing from every level....form cell, form section and the form.
no go.
Doing my head in!
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
I've tried a few things but I'm getting the same thing. Something is breaking the HTML code.
I've also got an Config Tool error message when I removed the true and false statements:
Exception while saving the object For input string: " "
Also (I've reported on another post), if you use the @ symbol anywhere on the custom form, it will break the code and truncate everything after and including the @ symbol.
I've also got an Config Tool error message when I removed the true and false statements:
Exception while saving the object For input string: " "
Also (I've reported on another post), if you use the @ symbol anywhere on the custom form, it will break the code and truncate everything after and including the @ symbol.
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Support,
Bug Report,
As mentioned @ symbol anywhere truncates the code, in this post's case apostrophe followed by a comma does the same.
Cheers
Bug Report,
As mentioned @ symbol anywhere truncates the code, in this post's case
Code: Select all
',
Cheers
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
I recently had a similar problem and got around it by creating 3 or 4 Link attributes in the SystemSettings object and then inserting the html layout by logging in and inserting the url parts.
(You can't make the attributes initialise with the html because of the bug so you need to log in and set the html )
Then on the object have a Link attribute that contains the link which is built by a rule on the object referencing the Link attributes in system settings and on the object itself.(so the link is embedded into each object and is called by <<YourObject.Link>>) - that was the only way I could get it to work
(You can't make the attributes initialise with the html because of the bug so you need to log in and set the html )
Then on the object have a Link attribute that contains the link which is built by a rule on the object referencing the Link attributes in system settings and on the object itself.(so the link is embedded into each object and is called by <<YourObject.Link>>) - that was the only way I could get it to work
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 2407
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia