How to add Column in Drupal's content View using VBO? - view

I want to add column into drupal's Content View.
In Drupal's admin panel, when we click on content Management-->Content-->List
the contents are loaded in table with columns Title|Type|Author|Status|Operations
I want add one more columns to this table and that is date and want to sort according to date.
How I can do this?

I wouldn't go through the trouble of altering that table. If you do so decide on going on that path here's a post that will help you: Add column to content list
The easiest way to do this is to install the Views module. Then
add a new node type view
add a page display
Fields (After you add the fields you can put them in the desired order):
Node: Title
Node: Type
Note: Published (Status)
Node: Post date (Created)
User: Name (Author)
Sort criteria
Node: Post date (Created)
Basic settings
Style: Table
click the small settings (gear link next to it) and specify Default sort and which fields are Sortable.
You might have to do some small other tweaks for the view or fields. Views is a very powerful module and once you master it you can get just about any page you can image.

Related

Oracle Apex Regional Header

Good afternoon,
I am trying to build a page using Oracle APEX 19.2. I have the application built and working fine, but now I am trying to make some changes for ease of navigation and titles.
I am trying to create a region header that would reflect the current data shown on page 4 of my table.
On the page editor, in the Region panes, I go down to the Header and Footer area and am able to create the header text using html and css, but is there a way to create the title based on a column from page 4?
I have a column on page 4 that is titled PN. Is there a way that I can take the text from Page 4_PN and make that the header for the region?
Thank you,
Kevin
is there a way to create the title based on a column from page 4?
Yes. Navigate to "Title" region's property and put (literally) &PN. in there - it'll take value from item named PN and use it as that region's title.

How to set Data Set Values in Master Page Footer

I am new to BIRT can you guys help me in this, my requirement is like, I have two fields PMNUM and CHANGEID, I need to show these two fields in master page footer based on third column value TYPE. If TYPE is PM I need to show PMNUM and if TYPE is CM I need to show CHANGEID.
I followed this https://www.youtube.com/watch?v=lw_k1qHY_gU&t=4s video to get PMNUM in the footer. But the problem here is if I hide PMNUM From the table, the PMNUM from the footer also hiding. Please guide me on how to solve this problem and share some guide for BIRT events.
You can add some script inside your table and assign PNUM and CHANGEID to global variables.
In the page footer reference to the global variables instead of the table's values that in your case may be hidden.

How do I link two fields to the same table in ServiceNow?

Forgive my ignorance for the proper terminology, but let me try to explain what I want to happen.
I have two custom fields on the incident table/form. I have created a custom table with 2 columns. I have figured out how to reference the table in one of the fields, allowing me to search the entries. Now I want to link the field selection to the other field via the custom table I made. When I make a selection in field A, I want field B to populate with the other column on the same row Field A pulled from in the first place. How would I do that?
Sounds like you want what's commonly referred to as a "derived field" or a dot-walked field.
You have a reference field which stores the reference to the other table, and want a second field on the form that shows another field on that referenced table. You don't actually need to create a new element, you just need to add a dot-walked form element.
Once you have the reference field added, go to Personalize/Configure the form layout.
In the slushbucket of available fields, you'll notice that reference
fields show up in green text with a little [+] next to them.
Select your reference field and a little button will show up between the two
lists, just above the "Add" button
Click that button and the left-side available fields will show the fields available on that reference field's table.
From here, select that second field that you want to display on your form, and bring it over to the right side where you want it.

Want to take an action in a View Panel column to set filter criteria and open another XPage

I have a view panel control that displays a list of documents and some information about each. One of the columns is the storage location of the item recorded in the document. I want to make that column a clickable link so when the user clicks it, they go to a different XPage that shows all the documents with that storage location. An example:
ID Location
12345678 ABCD
98765432 WXYZ
11223344 ABCD
Clicking the ID would open that document, but clicking ABCD would go to an XPage that would display all documents with a Location of ABCD.
This is what I have for the column value:
<xp:this.value><![CDATA[#{javascript:return "<script>sessionScope.set(\"trayId\",\"+rowData.getColumnValue('StorageLocationID')+\");</script>"+rowData.getColumnValue('StorageLocationID')+"";}]]></xp:this.value>
It displays the value properly and goes to the right XPage but I can't figure out how to set the sessionScope variable that I can use to filter the data source on location.xsp to show just the one location. I think I have to create HTML in the column because it threw an error when I set 'Show values in the column as links' and used onclick events to set a sessionScope variable for the location name and then open the location.xsp.
I could probably do this in a repeat control, but it seems like there should be a way to make this work in a view panel, since I feel like I am really close.
Don't set a sessionScope variable, just add a parameter ?location= to URL:
<xp:this.value><![CDATA[#{javascript:""+rowData.getColumnValue('StorageLocationID')+""}]]></xp:this.value>
mark the location column with contentType="HTML" and use the URL location parameter in your location.xsp for filtering your locations view:
<xp:this.data>
<xp:dominoView var="viewLocations" viewName="Locations"
keys="#{javascript:context.getUrlParameter('location')}"
keysExactMatch="true">
</xp:dominoView>
</xp:this.data>

How do I create an editable field with a Save button on Magento Admin's Order detail page?

I've already created a custom module that overrides the sales/order/view/tab/info.phtml layout file and creates a new field in the sales_flat_order table. Now I need figure out how to add a text input field to the order page:
The save button doesn't necessarily need to be right near the custom field and the field doesn't need to necessarily appear right where I put it in the graphic. Bottom line is, the administrator needs to be able to edit my new custom field in the admin.
What is the best way to do that?
Look at Comments History block
implementation - class Mage_Adminhtml_Block_Sales_Order_View_History, its template \app\design\adminhtml\default\default\template\sales\order\view\history.phtml and Mage_Adminhtml_Sales_OrderController::addCommentAction(). You should create similar block class with similar template and create controller with action which will save form data to your db field.

Resources