How to keep the column with FIXED? When I use pivot refreshes in Excel 2007, it keep changes
I use MS Excel 2007.
I want to keep the column fixed whenever I refresh data in pivot tables.
I tried even coding it with a macro:
Columns("B:F").Select
Columns("B:F").EntireColumn.AutoFit
And, in another time I tried columnwidth value to a fixed number; both doesnt work.
Please suggest a solution
Thanks in advance
Rafeek KBM
Hi Rafeek,
One solution is to set the column width after manually or programmatically refresh the PivotTable, for example:
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Dim ws As Worksheet
Set ws = Application.ActiveWorkbook.ActiveSheet
ws.Columns("A").ColumnWidth = 10
End Sub
Another option is to set the column width, then protect the columns from been updated by the user, before refreshing the PivotTable, unprotect the worksheet. For example:
Public Sub LockColumnA()
Dim ws As Worksheet
Set ws = Application.ActiveWorkbook.ActiveSheet
ws.Columns("A").ColumnWidth = 10
ws.Columns("A").Locked = True
ws.Protect "123"
End Sub
Public Sub UnprotectWorksheet()
Dim ws As Worksheet
Set ws = Application.ActiveWorkbook.ActiveSheet
ws.Unprotect ("123")
End Sub
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
How to hide the fields with labels when page re-rendering
Hi Gurus,
Please help me to hide the fields with labels when page is re-rendered.
I have written a on load : before process also.
But it is not working
Thanks in advance
kavitha LHi jari and Bruce,
Thanks for your reply. I am sorry that, i am not clear
I have a javascript like
function showcase()
var ctry = document.getElementById('P3_CHANNEL').value;
if(ctry == 'Affiliate') {
$x_Hide('P3_PUBLLICATION');
$x_Hide('P3_PUBLLICATION_label');
$x_Hide('P3_CIRCULATION');
$x_Hide('P3_CIRCULATION_label');
$x_Hide('P3_MEDIA_CPM');
$x_Hide('P3_MEDIA_CPM_label');
$x_Hide('P3_RATE_CARD');
$x_Hide('P3_RATE_CARD_label');
$x_Hide('P3_DISCOUNT');
$x_Hide('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Hide('P3_DAREA');
$x_Hide('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Direct Mail')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'E-Mail')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if((ctry == 'Online') || (ctry == 'PPC'))
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Hide('P3_DAREA');
$x_Hide('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Outdoor')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'PR')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Radio')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'TV')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'A')
{ $x_Show('P3_POSITION');
$x_Show('P3_POSITION_label');
$x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
html_ShowItemRow('P3_ISSUE_DT');
else if(ctry == 'Print')
$x_Show('P3_POSITION');
$x_Show('P3_POSITION_label');
$x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
html_ShowItemRow('P3_ISSUE_DT');
doSubmit('CREATE');
function showcase12()
var ctry = document.getElementById('P3_CHANNEL').value;
if(ctry == 'Affiliate') {
$x_Hide('P3_PUBLLICATION');
$x_Hide('P3_PUBLLICATION_label');
$x_Hide('P3_CIRCULATION');
$x_Hide('P3_CIRCULATION_label');
$x_Hide('P3_MEDIA_CPM');
$x_Hide('P3_MEDIA_CPM_label');
$x_Hide('P3_RATE_CARD');
$x_Hide('P3_RATE_CARD_label');
$x_Hide('P3_DISCOUNT');
$x_Hide('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Hide('P3_DAREA');
$x_Hide('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Direct Mail')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'E-Mail')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Event')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Other')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if((ctry == 'Online') || (ctry == 'PPC'))
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Hide('P3_DAREA');
$x_Hide('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Outdoor')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'PR')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Hide('P3_CTYPE');
$x_Hide('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Hide('P3_SIZE');
$x_Hide('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'Radio')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Hide('P3_CREATIVE');
$x_Hide('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'TV')
{ $x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Hide('P3_COLOR_TONE');
$x_Hide('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
$x_Hide('P3_POSITION');
$x_Hide('P3_POSITION_label');
html_HideItemRow('P3_ISSUE_DT');
else if(ctry == 'A')
{ $x_Show('P3_POSITION');
$x_Show('P3_POSITION_label');
$x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
html_ShowItemRow('P3_ISSUE_DT');
else if(ctry == 'Print')
$x_Show('P3_POSITION');
$x_Show('P3_POSITION_label');
$x_Show('P3_PUBLLICATION');
$x_Show('P3_PUBLLICATION_label');
$x_Show('P3_CIRCULATION');
$x_Show('P3_CIRCULATION_label');
$x_Show('P3_MEDIA_CPM');
$x_Show('P3_MEDIA_CPM_label');
$x_Show('P3_RATE_CARD');
$x_Show('P3_RATE_CARD_label');
$x_Show('P3_DISCOUNT');
$x_Show('P3_DISCOUNT_label');
$x_Show('P3_CTYPE');
$x_Show('P3_CTYPE_label');
$x_Show('P3_DAREA');
$x_Show('P3_DAREA_label');
$x_Show('P3_CREATIVE');
$x_Show('P3_CREATIVE_label');
$x_Show('P3_COLOR_TONE');
$x_Show('P3_COLOR_TONE_label');
$x_Show('P3_SIZE');
$x_Show('P3_SIZE_label');
html_ShowItemRow('P3_ISSUE_DT');
}This script i am calling on, onchange() for the select list item P3_CHANNEL and it is working fine.
But i have a create button and cancel button.
After filling the details in the required columns, when i click the create button, if any validation errors are there.. the page is re-rendered. while doing that the hidden items are getting displayed back.
Tried Solutions:
1. I created a same function once more and in the last added the doSubmit('CREATE') and called the script from the create button.
At that time the hidden fields labels are getting displayed.
2. I created a process On load before header To call this script on a condition :REQUEST = 'CREATE'
Then also fruitless..
I hope now it is clear....
Please! Any suggestion are mostly appreciated.
Thanks in advance
Kavitha L -
Cannot find the partner with BAPI_SALESORDER_CHANGE when I use alphanumeric
I try to use the BAPI_SALESORDER_CHANGE to create a sales order, however the BAPI fill with zero at the beginning of the ID partner.
For example If I had the ID partner 123456 when I use the BAPI_SALESORDER_CHANGE, the BAPI automatically filled 4 zeros at the beginning of the number = 0000123456 with this number the BAPI can find the ID partner in the SAP Tables.
However,
If I had the ID partner IC4100 when I try to use the BAPI_SALESORDER_CHANGE, the BAPI automatically filled 4 zeros at the beginning of the ID = 0000IC4100 with this number the BAPI canu2019t find the ID partner in the SAP tables.
Could anybody help me please? How can I use an alphanumeric ID for the partner function?
Thanks,
AdrianaHi,
I think in this case use the Conversion Alpha exit for this Partner. CONVERSION_EXIT_ALPHA_INPUT try to pass the fields of type KUNNR.
Let me know if any.
Regards,
Srinivas -
Hi,
I have table called Employe. And the Columns are Emp_ID,EMP_NAME,SRC_SYS_CD,DOB
I have Query like
Select
COALESCE(MAX(CASE WHEN src_sys_cd='1' THEN Emp_id END), MAX(CASE WHEN src_sys_cd='2' THEN Emp_Id END))Emp_Id,
COALESCE(MAX(CASE WHEN src_sys_cd='1' THEN Emp_name END), MAX(CASE WHEN src_sys_cd='2' THEN Emp_Name END))Emp_name,
COALESCE(MAX(CASE WHEN src_sys_cd='1' THEN dob END), MAX(CASE WHEN src_sys_cd='2' THEN dob END))dob ,
from Employe
group by dob.
I want to generalize the query like get the columns from SYS.ALL_COLUMNS table for that table name and want to pass it to COALEACE() function. I tried with Cursor. But i didnt get the appropriate results.
Is there any way to achieve this? Please help me out in this regard.
Thanks,Is this the kinda thing you're after?
Add a filter to the queries to get just a single table/
WITH allCols AS (
SELECT s.name as sName, o.name AS oName, c.name AS cName, column_id,
CASE WHEN st.name in ('float','bigint','tinyint','int','smallint','bit','datetime','money','date','datetime2','uniqueidentifier','sysname','geography','geometry') THEN st.name
WHEN st.name in ('numeric','real') THEN st.name + '('+CAST(c.scale AS VARCHAR)+','+CAST(c.precision AS VARCHAR)+')'
WHEN st.name in ('varbinary','varchar','binary','char','nchar','nvarchar') THEN st.name + '(' + CAST(ABS(c.max_length) AS VARCHAR) + ')'
ELSE st.name + ' unknown '
END + ' '+
CASE WHEN c.is_identity = 1 THEN 'IDENTITY ' ELSE '' END +
CASE WHEN c.is_nullable = 0 THEN 'NOT ' ELSE '' END + 'NULL' AS bText,
f.name AS fileGroupName
FROM sys.columns c
INNER JOIN sys.objects o
ON c.object_id = o.object_id
AND o.type = 'U'
INNER JOIN sys.systypes st
ON c.user_type_id = st.xusertype
INNER JOIN sys.schemas s
ON o.schema_id = s.schema_id
INNER JOIN sys.indexes i
ON o.object_id = i.object_id
AND i.index_id = (SELECT MIN(index_id) FROM sys.indexes WHERE object_ID = o.object_id)
INNER JOIN sys.filegroups f
ON i.data_space_id = f.data_space_id
), rCTE AS (
SELECT sName, oName, cName, column_id, CAST(cName + ' ' + bText AS VARCHAR(MAX)) as bText, CAST(cName AS VARCHAR(MAX)) AS colList, fileGroupName
FROM allCols
WHERE column_id = 1
UNION ALL
SELECT r.sName, r.oName, r.cName, c.column_id, CAST(r.bText +', ' + c.cName + ' ' +c.bText AS VARCHAR(MAX)), CAST(r.colList+ ', ' +c.cName AS VARCHAR(MAX)), c.fileGroupName
FROM allCols c
INNER JOIN rCTE r
ON c.oName = r.oName
AND c.column_id - 1 = r.column_id
), allIndx AS (
SELECT 'CREATE '+CASE WHEN is_unique = 1 THEN ' UNIQUE ' ELSE '' END+i.type_desc+' INDEX ['+i.name+'] ON ['+CAST(s.name COLLATE DATABASE_DEFAULT AS NVARCHAR )+'].['+o.name+'] (' as prefix,
CASE WHEN is_included_column = 0 THEN '['+c.name+'] '+CASE WHEN ic.is_descending_key = 1 THEN 'DESC' ELSE 'ASC' END END As cols,
CASE WHEN is_included_column = 1 THEN '['+c.name+']'END As incCols,
') WITH ('+
CASE WHEN is_padded = 0 THEN 'PAD_INDEX = OFF,' ELSE 'PAD_INDEX = ON,' END+
CASE WHEN ignore_dup_key = 0 THEN 'IGNORE_DUP_KEY = OFF,' ELSE 'IGNORE_DUP_KEY = ON,' END+
CASE WHEN allow_row_locks = 0 THEN 'ALLOW_ROW_LOCKS = OFF,' ELSE 'ALLOW_ROW_LOCKS = ON,' END+
CASE WHEN allow_page_locks = 0 THEN 'ALLOW_PAGE_LOCKS = OFF' ELSE 'ALLOW_PAGE_LOCKS = ON' END+
')' as suffix, index_column_id, key_ordinal, f.name as fileGroupName
FROM sys.indexes i
LEFT OUTER JOIN sys.index_columns ic
ON i.object_id = ic.object_id
AND i.index_id = ic.index_id
LEFT OUTER JOIN sys.columns c
ON ic.object_id = c.object_id
AND ic.column_id = c.column_id
INNER JOIN sys.objects o
ON i.object_id = o.object_id
AND o.type = 'U'
AND i.type <> 0
INNER JOIN sys.schemas s
ON o.schema_id = s.schema_id
INNER JOIN sys.filegroups f
ON i.data_space_id = f.data_space_id
), idxrCTE AS (
SELECT r.prefix, CAST(r.cols AS NVARCHAR(MAX)) AS cols, CAST(r.incCols AS NVARCHAR(MAX)) AS incCols, r.suffix, r.index_column_id, r.key_ordinal, fileGroupName
FROM allIndx r
WHERE index_column_id = 1
UNION ALL
SELECT o.prefix, COALESCE(r.cols,'') + COALESCE(', '+o.cols,''), COALESCE(r.incCols+', ','') + o.incCols, o.suffix, o.index_column_id, o.key_ordinal, o.fileGroupName
FROM allIndx o
INNER JOIN idxrCTE r
ON o.prefix = r.prefix
AND o.index_column_id - 1 = r.index_column_id
SELECT 'CREATE TABLE ['+sName+'].[' + oName + '] ('+bText+') ON [' + fileGroupName +']'
FROM rCTE r
WHERE column_id = (SELECT MAX(column_id) FROM rCTE WHERE r.oName = oName)
UNION ALL
SELECT prefix + cols + CASE WHEN incCols IS NOT NULL THEN ') INCLUDE ('+incCols ELSE '' END + suffix+' ON [' + fileGroupName +']'
FROM idxrCTE x
WHERE index_column_id = (SELECT MAX(index_column_id) FROM idxrCTE WHERE x.prefix = prefix) -
How to avoid the windows "dialog box" when we use flexprintjob class
in the print segment
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65381-7ffc.html
it says
printJob.start();
This causes the operating system to display a Print dialog box.
this windows "dialog box" which is used to set the page size, page index, or some other page settings.
but in my case , i can't let user see this dialog box.
how can i avoid this "dialog box" when i call printJob.start();
it is my big issue ,please help to give a suggestionhi how can i set the "ie" "internet explorer" to avoid the "dialog box." if i have to do it .
thank you very much ! -
How to solve the middle dark line when I use officejet all in one the copy function?
The printer function is good, but only has problem in copy functioln. How to clear the middle dark line?
This question was solved.
View Solution.Hello tseng0719,
I think it would be useful to have some more information in this case. For example:
Which printer do you have? Do this happen when you copy from the flatbed or from the adf? Do this also happen when you scan a picture?
A quick tip would be to clean the scanner glass as it migh very well be that it's just down to dirt on the glass (especially if this happens when you scan via the adf). -
How to config the web.xml file, when I use Richfaces + RI 1.2?
Hi there:
I want to use Richfaces + RI 1.2 to build a project. I don`t know how to config the web.xml file.
By the way, my web server is Tomcat 6.0, my JDK's version is 6u6. I don`t want to use the facelets.
thanks.
lxmjust add this before *</web-app>*
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping> -
How to store the result with a time are using?
Hi,
I'm using the adobe captivate 5.5 to create the Visual Aid Project.
What i want to ask in captivate 5.5 is :
Q1. How to record and store the time are using in each slide. ( Record down how long need to take by user to complete one slide)
Q2. How to create the file above (Q1), and save it in computer. ( For review purpose)
The purpose for this project is record down how long(time) are need to complete for each Slide. Besides, this project will store the result in computer hardisk and for review purpose.
Example :
Slide
Time Used (in sec)
Slide 1
10 sec
Slide 2
5 sec
Slide 3
20 sec
Slide 4
5 sec
Slide 5
30 sec
Total Time
70 sec
Thanks,
Regards,
ShenHello,
It is possible to store the time in user variables. How to export those variables depends on the deployment of the file.
Some information about showing elapsed time can perhaps give you a start:
Display Time Information
Lilybiri -
How to enclosed the column with in double quotes while spooling to csv fie
Dear Members,
I have to spool a sql to a CSV file. I have two columns to spool one is vendor_id and another is vendor_name. But the 2nd column vendor_name has commas in it so if i see the o/p it looks like this:
Suppose vendor_id = 12790 vendor_name = T T I, INCORPORATED
when i see the csv file it looks
12790,T T I, INCORPORATED
I want each column be enclosed in double quotes like this
"12790","T T I, INCORPORATED"
How can i do this in sql*plus while spooling to a csv file.
Thanks
sandeepthis?
SQL> select '"'||'Hi'||'"'||',"'||'how'||'"' from dual;
'"'||'HI'|
"Hi","how" -
How to select the column with respect to language in sql server
USE Master
SELECT * FROM SysMessages
GO
when i execute the above query, in description column am getting English and Chinese , here if i want to select only English .
how can i select only English language by using WHERE condition.
And why am getting data in Description column in Chinese also any reason behind it.
If there is any reason please suggest me.Bro , here am not getting what is Unicode and all
Specially ,
Why does we need N' string ' while inserting and Why we need to place N and String in Unicode while inserting data and what does it mean.
Insert into T1 Values
(N'找不到由給定的 @article 或 @artid ''%1!'' 所參考的物件。'),
(N'Unclosed quotation mark after the character string .') -
How to program the FPGA with compact flash without using IMPACT
hi;
I want to load my download.bit generated by the EDK tool in the compact flash to program the FPGA (spartan 3a for dsp),
please anyone help me to program my FPGA (spartan 3a for dsp) using the compact flash without using IMPACTcheck if the following link helps
http://www.xilinx.com/products/intellectual-property/xps_sysace.html -
I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?
The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
Menu > Format > Import Styles
The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
Peter -
How to find the column name and table name with a value
Hi All
How to find the column name and table name with "Value".
For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
Any help is highly appricatable
Thanks & Regards
Srikkanth.M2 solutions by Michaels (the latter is 11g upwards only)...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
SQL> select table_name,
column_name,
:search_string search_string,
result
from cols,
xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
columns result varchar2(10) path '.'
where table_name in ('EMP', 'DEPT')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME ES RESEARCH
DEPT DNAME ES SALES
EMP ENAME ES JONES
EMP ENAME ES JAMES
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES PRESIDENT
EMP JOB ES SALESMAN
9 rows selected. -
How can i register column with in the query
hi all
how can i register column with in the query?Thanks.
In my business one, the column width was registed.
But I don't know how can I do it.
So I try to save the query again after change column width.
Then the query was opend with changed column width.
Is it right function?
Is there any way to register the column width?
It's very troublesome to change column width every time.
seiichi -
i bought pdf converter pro @$29.99 but when i convert to excel it only converts the columns with figures leaving out the columns with quantity descriptions
Contact the vendor of the product for support.
Maybe you are looking for
-
Why wont my iphone charge from my computer after ios 7.1 update?
I have a windows 8.1 PC. I use it for work. I also have an iphone. Today, I updated the ios on my phone to 7.1. During the update, the phone was connected to my PC usb port with the apple charging cable to keep it charged. The update finished, a
-
My iPod touch doesn't recognise my router.
Me and 2 members of my family have one of the new iPod touch models and mine wont recognise the wireless router but the other 2 iPods do recognise it. How can I solve this problem?
-
Hi I am from SAP-BI Background. Can anyone please tell link to BO Documents list.i am new to BO. Thanks Nilesh
-
My trash refuses to end deleting my files, somebody can help me?
As my hard disk is starting to get full, I tried some days ago to delete some files from the trash but it never worked. The window keeps saying that it's being deleted but never ends. I can't even restart my mac because the window is open and I can't
-
X-fi platinum not detect front pa
I?installed the x-fi properly!!!!But the front panel it doesnt work...whyyyyyy??When i go to start the entertainment center settings i take this message : Unable to find a working IR device"?Please Help!!!!!!!