I have table configuration for my site like this in JQGRID
configid config rule
1. Aplication_name 'MyApps'
2. Max number 1,000,00
3. Application End 12/31/2012
One cell type's number but other's date. And If User want to edit date type , it shown datepicker.
How Do I Do that?
Thanks,
There is an example of how to use the jQuery UI datepicker with jqGrid on the demo page under Integrations | UI Datepicker.
Is there a problem with that demo or something more that you need the grid to achieve?
Related
I'm trying to make pagination work on my site dynamically and I'm not sure how to change regular pagination to accomplish what I need to do and I was wondering if a PHP guru could help out!
Basically, once a week a report runs and populates records for the last week in my database. Also, at the end of the month, the report runs and pulls in the last month of data.
I would like to build my PHP page so that all items in the same month (~4-5 weeklies and 1 monthly) show up on the same page, and that each pagination page is a different month's data.
Currently the weeks are stored as two fields, start and end date, in the format: 2018-mm-dd.
How could I have it so that page 1 is all 2018-03 records, page 2 is all 2018-02 records and page 3 is all 2018-01 records? I also would like this to be automated so each newest month becomes thE new page 1.
Does this make sense? Is this possible? Any assistance would be greatly appreciated!! Thank you very much!!!
I am new to SugarCRM. I have a requirement to calculate a field value through studio. But, in one of the fields which comes in denominator can be 0. So, i want to modify the formula through ifElse, how to do that.
Example - If (field1>0){calcField/field1} else(calcField=0).
you can use calculated field , if else like this:
ifElse(equal($status,"Held"),1,0)
For more information check this link :
Calculated field in sugarcrm
I am needing to have a custom element that will look at a drop-down called month and conditionally insert the numeric month into the database. For example if the user selects October it would put the number 10 in the numeric_month field in the DB. The month drop-down is set to another field in the same database and unfortunately there is no way to combine them for our purposes. Any help would be appreciated. I am new to php coding.
Create a hidden field in your form for numeric_month
add a "Custom Code" action to the "On Submit" event before your "DB Save Action"
In the Custom Code action insert PHP code to set the numeric_month field to the appropriate value depending on the selected drop down value.
In ChronoForms v4 or v5, this will be something similar to this:
<?php
$form->data['numeric_month'] = date("n",strtotime($form->data['month']));
?>
This would set numeric_month to '7' for a month value of 'July'.
Use date("m",strtotime($form->data['month']) to set numeric_month to '07' instead.
For more information about the PHP code to convert a month name to a numberic string, see the answers to these questions:
convert month from name to number
PHP convert short month-name to month-number
CURRENT FUNCTIONALITY:
In my financial/budgeting app, the current functionality allows a user to add a recurring budget category that will appear in each month's budget. It does this by allowing a user to select a "recurring" option from a dropdown, which makes 2 additional dropdowns appear, one with a beginning month and one with an ending month. When the category is recurring, it writes the beginning month and the ending month to the database (diagram below).
DESIRED FUNCTIONALITY:
The problem with the current design is that I want the user to be able to delete one (or more) month from the recurring months. So lets say I set up a recurring category in January for the entire year. Then I get to May and I want that category not to appear for that month. If I delete the category, it currently deletes it for all months, past and present. I need it to have the option to only delete only the desired month(s).
I'm not sure how to accomplish this, and I thought maybe someone has a good idea. Maybe my database structure is off? In the interest of normalization, I didn't want to just add a column for each month or anything like that.
Rather than storing the recurrence formula, IMHO it would be best to store the actual months in a many-to-many relationship:
categories
----------
id
name
months
------
id
category_months
---------------
cat_id
month_id
When a user enters a recurrence formula, it will create the relationships. Then they will be freely able to remove months one at a time if necessary.
I am creating a tour portal in magento 1.8.
The thing I need is to add a group of fields included in the itinerary like place of departure and time according to the no. of days specified for the tour.
eg. If i specify the tour duration to be 2 days i should get 2 sets of the above fields grouped as day 1 and day 2.
How can i accomplish that?
i dont think Magento provide any feature as desired by you, you either need to create custom module where you can provide a list of all products and then add/edit/delete the groups on day basis.
Another approach to start can be using different attribute sets for different days tour, and then add no of attributes needed in each attribute set.
Hope this will help in starting the development.