In Laravel Filament's form how precharge a textfield? - sum

In a Form i need to obtain the max ('invoice_number') and add 1 before to show in TextForm::invoice_number -> disabled()
Can anyone help me??
Thanks in advance!

Related

Make Text Field item as Read Only in APEX 5.0

I have some text field page items on my APEX 5.0 page and I want to make the textboxes as read only/non-editable. During the page load I want to use these text boxes for only the data display on the page and should be non-editable.
Can somebody advice on how to do that? What attributes need to set for this?
This answer is a bit late to the party, but I found myself confronted to this problem and I wanted to share the solution I came up with.
In fact you just need to create your item as a text area, let say P1_Text_Area and you give it a readonly attribute using JavaScript. Write thoses 2 lines in the "Function and Global Variable Declaration" of your page:
var disItem = document.getElementById('P1_Text_Area');
disItem.readOnly = true;
Hope this helps someone in need.
in item properties find the
Read Only group
and set Read Only Condition Type as Always
or the option that suits to you
You can use disabled + save session state ==> read only

SSRS print stickers with horizontal layout .NET

I have 2 or 3 days I frustratingly tried to print a list of items in the form of stickers filling all the space that becomes available.
This is the result I get:
And this is the result I want, I need to use the horizontal space.
I would greatly appreciate any suggestions or examples of how to do that.
Thank you!
I solved my problem following this tutorial:
http://blogs.lessthandot.com/index.php/datamgmt/dbprogramming/mssqlserver/creating-mailing-labels-in-sql/

Avoid empty option element from multiselect box

I am using Zend form and using it i am creating a multi select box. But when the multiselect box is created the first option value is a empty element.. like this
`<option value=""></option>`
I want to avoid this..This is the code i am using..
$addressType_selected = $this>createElement('multiselect','addressType_selected[]')
-> setAttrib('class','float_left input_width_295 k-multiselectbx')
-> setAttrib('tabindex',43);
$addressType_selected->setDecorators(array(
'ViewHelper',
'Errors'
));
What is wrong with my code.. i am stuck with this... Thanks in advance....
I found the answer..
Just used the following script
$("#addressType_selected option[value='']").remove();

How to you add html attribute options in Yii radio button?

I am trying to use Yii radioButtonList and customize it with an image on top of each radio button.
However, I'm not sure about how to do it and would be grateful if there's any help.
In the documentation:
public static string radioButtonList(string $name, string $select, array $data, array $htmlOptions=array ( ))
for the $htmlOptions=array(), what can you put in there?
I've seen people using 'separator'=> '', can anyone show some examples?
Thanks in advance.
Try:
'htmlOptions'=>array('size'=>100,'class'=>'yourclass')
basically it's:
'htmlOptions'=>array('validHtmlOption'=>'value','anotherValidHtmlOption'=>'value')

extjs4 treepanel childnode editing

In extjs4 , I would like to click treepanel child node, you can directly edit , and update , but I have no way to do for a long time ,. I am trying a lot on this issue.Please help me.
Help would be appreciated.
Regards,
fange
Oh ... ... I solve this problem, in the "plugins" to add plug- in Ext.create ('Ext.grid.plugin.CellEditing', {clicksToEdit: 2 ,})",
most important thing is there must be Ext.override (Ext.data . AbstractStore, {indexOf: Ext.emptyFn});