I have a ChildAction Macro using SurfaceController. In the view for this action I want to use GetMediaUrl.
Is this possible?
Related
I would like to add a simple checkbox to a Fiori app based on a CDS view. Clicking it would restrict the data using a parameterized table function that would return "true" or "false" for each row.
I'm unable to find any info on checkboxes in the filter bar. Is this possible using CDS annotations ?
Please check the relevant ODATA metadata, if the field of the entity is of type 'Edm.Boolean', in the Fiori, it will automatically rendered as a checkbox. You can also cast the field to ABAP boolean in CDS view if necessary.
I have a Pentaho cde dashboard with a popup component to show a table. This popup works ok if I load the table when the dashboard is generated. However, I want to change the query called depending on which figure is clicked on the main dashboard page. The table consists of detail records retrieved from a database using a cda query.
When I change a parameter containing the dataAccessId when calling the popup it does not work. The popup fails to appear.
Anyone have any ideas how to get around this?
This works:
function f(e){
render_Popup_Details.popup($(e.target));
}
This doesn't work:
function f(e){
Dashboards.fireChange('flag_popup', 'flag_10');
render_Popup_Details.popup($(e.target));
}
Did you try updating the table before activating the popup?
function f(e){
Dashboards.fireChange('flag_popup', 'flag_10');
Dashboards.update([render_your_table_component_name]);
render_Popup_Details.popup($(e.target));
}
If you're using RequireJS, then:
function f(e){
this.dashboard.setParameter('flag_popup', 'flag_10');
this.dashboard.getComponent('render_your_table_component_name').update();
this.dashboard.getComponent('render_Popup_Details').popup($(e.target));
}
I've created a blur background view which I would like to apply to a particular UIview which contains a number of elements - I would like the new view to be placed behind all other elements.
This is my current code -
[_feedUIView addSubview:blurView ];
All works fine - but it places the new view in front - how can I place it at the back?
Just use this after adding it:
[_feedUIView sendSubviewToBack:blurView]
Do something like this.
[_feedUIView addSubview:blurView];
[_feedUIView sendSubviewToBack:blurView];
I'm on ExtJS 4 and using an MVC approach. I've created a simple grid view class, and have added a componentquery type 'ref' to that view in my controller. Within the initial grid view itself I set several columns to be hidden and some to be visible by default. The rendering of the grid with those settings is all working fine.
Then I have a button that, when clicked and based on some other conditions, will make some of the initially hidden grid columns visible. This works as well.
But what I need is a way to later 'reset' the grid to its initial view (with the correct columns hidden/visible, as they were initially).
I've tried various permutations of the following with no effect:
var theGrid = this.getTheGrid();
theGrid.reconfigure(store, theGrid.initialConfig.columns);
theGrid.getView().refresh();
I suppose I could loop through every column and reset its 'hidden' state, but would think there's a way to just 'reset' back to what's set in the class? Advice?
SOLUTION UPDATE
Appreciate the pointer from tuespetre. For anyone coming along in the future looking for specifics, here is what was needed (at least for my implementation):
Within the view, moved the column defs into a variable
Within the view, columns ref within the class becomes:
columns: myColumns,
Within the view, the following function created within the class:
resetGrid: function(){
this.reconfigure(null, myColumns);
},
Within the controller:
var theGrid = this.getTheGrid();
theGrid.resetGrid();
You will just need to create a function on your view class to encapsulate that functionality.
How to specify page size in dynamically in yii view?(not a grid view)
In my custom view page there is a search option to find list of users between 2 date
i need 2 know how to specify the page size dynamically? If number of rows less than 10 how to hide pagination ?
please check screen-shoot
I dont want the page navigation after search it confusing users..
my controller code
$criteria=new CDbCriteria();
$count=CustomerPayments::model()->count($criteria);
$pages=new CPagination($count);
// results per page
$pages->pageSize=10;
$pages->applyLimit($criteria);
$paymnt_details=CustomerPayments::model()->findAll($criteria);
$this->render('renewal',array('paymnt_details'=>$paymnt_details,'report'=>$report,'branch'=>$branch,'model'=>$model,'pages' => $pages,));
}
my view
Link
I'm assuming you want the entire list of search result be shown on a single page, no-matter how long it is?
If so, this is quite easy to achive.
As I can see in your code, you are now defining your pageSize to have a size of 10. You can update it to be dynamically be doing this:
$pages->pageSize = $count;
To remove the pagesizes you can change the css of your view file, but for that we would need your view file to see how you defined it.