Im trying to create a custom formatter in Symfony 1.4.
I have embedded form via
$this->embedRelation('User','BasesfGuardUserAdminForm');
Is there a way to format the name of the embedded form 'User'?
IIRC BasesfGuardUserAdminForm AS User.
I has the same issue, and when I replaced embedForm() by mergedForm() the errors became easy to manipulate.
I think this is most straight-forward! (and pretty obvious too!)
$this->embedForm('inner_form', new InnerForm());
$this->widgetSchema['inner_form']->setLabel('');
This will result in an empty label for the form!
foreach ( $answers as $a )
{
$aForm = new QuestionAnswerForm($a);
$this->mergeForm($aForm);
}
$this->widgetSchema->getFormFormatter()->setRowFormat('%field%%help%%hidden_fields%');
Related
Im having trouble passing multiple parameters to my drill though report using an url.
I have got a single one working however when i try to add the next one it doesn't like what i have put.
="http://rpt.Test.local/ReportServer/Pages/ReportViewer.aspx?%2f%5bQuote+Tool%5d%2fChange%20Elec%20Split&PC="&Parameters!PC.Value
Above is the working one parameter and im now trying to add
MTC = Parameters!MTC.Value.
Just think im imputting wrong.
Cheers
Try this one.. almost there but just a small tweek:
="http://rpt.Test.local/ReportServer/Pages/ReportViewer.aspx?%2f%5bQuote+Tool%5d%2fChange%20Elec%20Split&"&PC=" &Parameters!PC.Value &"&MTC=" & Parameters!MTC.Value & "&rs:Command=Render"
I'm hoping some one can help. I've create an new page with an umbraco datatype drop down. I have a form in the front end which will create a new page. I was wondering is there a way I can set the value of the dropdown. atm I have just been passing in the value but to no avail. any help given will be greatly appreciated.
kind regards,
H
I think I found a good solution not too sure if it is the "right" solution but it seems to work
https://our.umbraco.org/forum/developers/api-questions/54462-Set-value-of-UmbracoDropDown-programatically
Im using orbeon 4.10 to collect data and fill back a PDF from a template. I would like to choose how the time is displayed on the pdf. I have seen the oxf.xforms.format.input.time and oxf.xforms.format.output.time properties, but they seem to only control the form itself.
I have also seen this, but it seems to relate to the date format.
What value do I need to change in my properties?
Thanks
UPDATE: I don't think my solution below actually works. I think this might have worked at some point but might not work anymore. We do have an RFE for this.
You can use the following property:
<property
as="xs:string"
name="oxf.fr.resource.$app.$form.$lang.print.formats.time"
value="[H01]:[m01]:[s01]]"/>
where:
$app is the app name
$form is the form name
$lang is the language which applies
You can use wildcards (*) for all of those.
As a workaround i used a Hidden field to format my time correctly for the pdf.
Here is the formating code :format-time($controlname, '[H01]:[m01]') that i used in the calculated value
Here is the visibility code : $fr-mode = 'email' for the pdf generated from email or $fr-mode = 'pdf' for pdf button.
I'm making a parser in rails for a website and I'm having trouble selecting only the stuff I want.
I want to select the following sibling to a td-tag that contains ONLY "World:", but there's another td-tag containing "Former World:" that I get too, and I don't want to select that one.
Here's my XPath selection:
//td[contains(text(), 'World:')]/following-sibling::td
So I want the tag containing ONLY "World:" and not the other one containing "Former World:"
Any ideas? Spent hours searching for a solution, but now I ended up here.
Does it work if you change it to
//td[text()='World:']/following-sibling::td
Have you tried testing the text with equals?
//td[text() = 'World:']/following-sibling::td
or
//td[. = 'World:']/following-sibling::td
Currently, I'm using the gem "acts_as_taggable_on_steroids".
Everything working fine. Now I'd like to add tokeninput to this "tag input box"
All the tags existing should be displayed here as candidate tag. when the user input 1st word.
and those tags have to be delimited by " "(space)
How can I make both "acts_as_taggable_on_steroids" and token input working??
Any good instruction to archive these?
You can use RailsCast #258.
It's useful, fast and easy to implement.
I have resolved one issue which is adding new tag using the things given in this url
https://github.com/Mean-CJ/jquery-tokeninput/commit/ecb8b04df6df21b1a892187a5bcf94ff7b8d15d1
Which are commenting
//$(this).val("");
// Adding these two lines
newToken = {'id':$(this).val(),'name':$(this).val()};
add_token(newToken);
In the else part of
case KEY.COMMA:
In the js file