@sohopros - did you find a way to do this? I'm trying to achieve the same thing and I can't figure a way of doing it using the Joomla! "xml/fields" method.
For those who don't understand the question (@ranwilli - why bother being that nonconstructive?) as far as I understand what sohopros is trying to do (and me) is:
Create a component in the admin area of which it is possible to create form fields to use elsewhere (front-end in my case) within the component. These fields will be stored in the database.
As these fields will be named "dynamically" as they are created in the component, you cannot (seemingly) use the normal Joomla! method for creating the "edit.php" views for displaying/editing.
Example (based on MY requirements):
OK for a "fixed" form field: administrator/components/my_component/models/forms/release_credit.xml
<field name="num_credits" type="numfields" default="" administrator/components/my_component/views/release_credit/tmpl/edit.php
label="Number of credits available to this user" class="readonly" readonly="true"
description="How many credits available? " />
<div class="control-label"><?php echo $this->form->getLabel('num_credits'); ?></div>
<div class="controls"><?php echo $this->form->getInput('num_credits'); ?></div>
So, along with the field type file we can display the form field.But
if I want to use this method for many fields that are created dynamically in the admin area and front-end users fill them in to populate a db table I can't use the method I describe above as I don't know what the fields will be!
OK, I could create my own forms in the view and override the "save" function but I'd like to do it 'properly' if there is such a way to do it.
My current line of thinking is to populate the xml file programmaticaly each time a new form field is added, but this seems like a right old faff to me.
Anyone got any further ideas?