This topic is locked

Creating and Manipulating Custom Fields

10/25/2008 7:11:54 PM
PHPRunner General questions
M
mustafa author

Hello,
First of all, It's undoubted that PHPRunner is excellent and thank you very much for simplifying the life.
Unfortunately, I think there is a big hole about documentation.

Although I'm not inexperienced in PHP, I couldn't find a way to solve my very simple problem.

May be, I'm not experienced enough :)
Problem is about creating (live) custom fields.
In this project, it may be solved in database by creating some supporting fields and creating suitable queries.

But, I think it's very important to clarify custom fields in PHPRunner.
It would be wonderful having a step by step guide.
Best Regards,

Mustafa

J
Jane 10/28/2008

Hi,
to display fields from another tables use custom events ("Insert PHP code snippet" option on theVisual Editor tab).

Or you can add these controls manually in HTML mode on the Visual Editor tab and then calcualate and assign values in the List page: Before display event on the Eventstab.

M
mustafa author 10/29/2008

Hi,

to display fields from another tables use custom events ("Insert PHP code snippet" option on theVisual Editor tab).

Or you can add these controls manually in HTML mode on the Visual Editor tab and then calcualate and assign values in the List page: Before display event on the Eventstab.



Hello Jane,
I apologize for posting many questions.
Unfortunately, your answer is not solution for what I want.
Although I think it's clear from pictures, It's probable that I couldn't explain the problem.
First of all, what I mean with "live custom fields":
Live Custom Fields: Custom fields which can be updated automatically.

Not only at display time, but also while working on records with inline edit.
I've some columns of data and some rows.

After I edit any row, totals (or averages) row is updated automatically.

I'd like to have same action with custom fields without necessity of refreshing page.


I hope having solution from you.
Best Regards,

Mustafa

A
alang 10/29/2008

Looks like the main point is field update after inline add/edit. I think you have to do this with client-side javascript?

J
Jane 10/31/2008

Hi,
unfortunately there is no easy way to update these addtitional fields automatically. This task requires a lot of custom coding.

Unfortunately we don't have a ready to go solution for this.

F
frphilip 10/31/2008

Should be done with javascript, I believe.
but how to insert JS code in one page, I don't know. I think the best solution is :

  • include in the page a call to external JS file, with all the functions requested.
  • add JS code on each field. For this point, I don't know how to do, but I'm very interested in the solution.

M
mustafa author 11/1/2008

SOLVED
Finally, I solved it. But unfortunately, it was time consuming process because of lack of documentation.

Actually, the solution was very simple. As frphilip mentioned, it's a script job.


As events, there may be custom scripts section in the future releases.

Therefore, after building project, there won't be necessity of manipulating generated code.
All the same, PHPRunner simplifies the jobs.
Thank you very much.
Best Regards,

Mustafa