How to dynamically change the column in tabular form
Hi!
Is there any way to show notice in tabular form if value entered is not in some range?
eg. I click on button add row, and then I fill out values and if one value is not within a certain range then in last column (this column is not included in table) is notice out of range or something else. I know that this can be achieved with validations but this must be just notice, not some restriction. Values I wrote must be inserted into table.
I hope you understand me. I use Apex 4.1 and 11g Oracle database.
Regards,
drama9346
Sure you can. If you edit your page attributes you have a field javascript on load. Here you can enter code that does checks or actions depending of user events. Example in the case of a tabular form:
$('input[name=f01]').live('change', function(){
if($(this).val()=='1'){
alert('value is 1');}
This will give an alert if you change the item in the first column to 1.
More about jQuery & events at
http://api.jquery.com/category/events/
Similar Messages
-
How can i change the column label text in a alv table display
how can i change the column label text in a alv table display??
A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
<i>* declare column, settings, header object
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
get column by specifying column name.
lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
set Header Text as null
lr_column_header = lr_column->get_header( ).
lr_column_header->set_text( ' ' ).</i>
My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
<i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
i have checked in debugging and the error occured at the statement :
<i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
Thanks,
SuriI found it myself how to do it. The error says that it is not able to find the reference object i.e it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_cmdl TYPE REF TO cl_salv_wd_config_table,
lr_col TYPE REF TO cl_salv_wd_column.
DATA : node_year TYPE REF TO if_wd_context_node,
elem_year TYPE REF TO if_wd_context_element,
stru_year TYPE if_alv_layout=>element_importing,
item_year LIKE stru_year-i_current_year,
lf_string TYPE char(x),
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
Get the entered value from the input field of the screen
node_year = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
elem_year = node_year->get_element( ).
elem_year->get_attribute(
EXPORTING
name = 'IMPORT_NODE-PARAMETER'
IMPORTING
value = L_IMPORT_PARAM ).
WRITE L_IMPORT_PARAM TO lf_string.
Get the reference of the table
lr_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
lr_if_controller = wd_this->wd_cpifc_alv( ).
lr_column_settings = lr_if_controller->get_model( ).
get column by specifying column name.
IF lr_column_settings IS BOUND.
lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
set Header Text as null
lr_column_header = lr_column->get_header( ).
lr_column_header->set_text( lf_string ).
endif. -
Dynamically change the column name....
Hi,
I am facing a problem in displaying name of the columns dynamically as a parameter selected from the dashboard prompt.
I have some facts which contains data according to the selected month (From Prompt).
As of now the column names are:
Curr, Next1, Next2, Next3 which displays the data for the months accordingly to the selected month from prompt.
Data is coming correctly but on the report the column name are displayed as Curr, Next1, Next2 and Next3 which I want to be displayed as the month name for which it contains data.
How can I do that? I have tried presentation variables to be used in custom heading but that is only as string.
Thanks in advance !!!
Regards,
S Anand
Edited by: S Anand on Nov 20, 2009 2:29 AM
Edited by: S Anand on Nov 20, 2009 2:29 AMMy scenario is little different, let me explain:
My columns will remain same but values changes (based on column formula) according to the selected prompt value
If I select 'Oct' from prompt then
Curr will contain data for 'Oct' only
Next1 will contain data for 'Nov' only
Next2 will contain data for 'Dec' only
Next3 will contain data for 'Jan' of next year only.
Later if I select 'Jul' from prompt then
Curr will contain data for 'Jul' only
Next1 will contain data for 'Aug' only
Next2 will contain data for 'Sep' only
Next3 will contain data for 'Oct' only.
I don't have different columns for each months but the columns are capable to reflect data for any month.
So, how can I reflect the column name as month name for which that contains data.
Regards,
S Anand -
How to dynamically change the text of a TextObject with embedded DataField?
Hi
I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
Text1 => "Contact Name: {Contact.Name}"
and I'd like to change it to anything else like:
Text1 => "Nom du Contact: {Contact.Name}"
Half of my TextObject is static text while second part comes from the dataset.
(of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
Anyone knows how to deal with that ?Only way I can think of doing this:
1) Create a formula (call it lang) and enter the string "Contact Name" in it
2) Place the {Contact.Name} field next to the string
3) So now you have:
ContactName: {Contact.Name}
4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Inherits System.Windows.Forms.Form
Dim Report As New CrystalReport1()
Dim FormulaFields As FormulaFieldDefinitions
Dim FormulaField As FormulaFieldDefinition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormulaFields = Report.DataDefinition.FormulaFields
FormulaField = FormulaFields.Item(0)
FormulaField.Text = "[formula text]"
CrystalReportViewer1.ReportSource = Report
End Sub
I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)... -
How do I change the "author" of my forms?
I need to change the author of my forms because we no longer work with him. Is there a way to do this?
This document on How do I copy of form to a different account can provide you the details.
-
Can we dynamically change the column based on drill filter parameters
Hi All,
Is it possible to pass the drill filter parameter from a parent WebI report to Child webI report.
Here is the scenario:
There ar 2 WebI reports: Test1 and Test2.
Test1 is the parent report which is having the drill options and a link to detial report.
Depending upon user selection of Region, Market Unit or Country the detail report should display data dynamically by taking those drill filters as input for prompts of second report.
ie. if user drills to region = APJ, detail report should only display APJ Data at detail level.
If user is on drill level = Market Unit, only that Market unit details should be displayed, similarly for country.
I am able to pass the drill parameters of Test1 report using the formula:
="<A HREF=https:///OpenDocument/opendoc/openDocument.jsp?sType=wid&sDocName="+URLEncode("Test2")
"&sWindow=New&lsMRegion="URLEncode(If(DrillFilters([Region])="" ; [Region_All];DrillFilters([Region])))"&lsMMU="URLEncode(If(DrillFilters([Market Unit])="" ; [MU_All] ; DrillFilters([Market Unit])))
"&lsMMU="URLEncode(If(DrillFilters([Country])="" ; [Country_All] ; DrillFilters([Country])))
">""Detail Report"+"</A>"
But I am not sure what formula I need to write in the Test2 report so that column changes based on the drill filter selection in Test1 Report.
Can you please someone help me out in this?
Thanks in Advance.
Regards
SindhuPlease find my replies inlined >>>
Hi Tapash,
Thanks for the reply. I have already extended the
VORowImpl class and overridden the setAttribute14.
The value gets stored in the database, but I am not
able to fetch this value using getAttribute14() in
the VORowImpl class. I am not sure why, but my
requirement is to change the value of an attribute
depending on its previous value.
You need to requery your VO to get the data back from the DB
Let me elaborate my requirement. In iprocurement we
have created a requisition using copy to cart
feature. Our requirement is to launch the Account
Generator whenever a requisition is created using
copy to cart.
Okay
This can happen if we change the value of an
attribute. I changed the value of this attribute from
the form
Do you mean you changed the value from forms application ?and observed that account generator is
launched. But as this attribute is not used by
client, I want to change the value of this internally
but it should behave the same way as if the value is
being changed from the form.
I hope this makes the requirement clear.
What i understand is, you need to launch the account generator when you create a req using copy to cart, so let us look at that, i would suggest not to change/use tha flex attibutes if not required, because the client might want to define a DFF on the field tomorrow, that is the purpose of attribute fields, now if you manage to get your requirement by using it today, it might incur rework tomorrow.I will find out how iProc works and would let you know other better way of launching the account generator.
>
Thanks -
How do you change the column widths in a master-detail input form?
I have changed several columns to af:inputText so that the field contents can be modified, but this defaults the column width to a huge size, way past the size of the actual data field itself. Modifying the width attribute is ignored and dragging the column dividers is also ignored.
How do I reduce the widths of these columns?
ThanksHi,
maybe this blog entry "Referencing Maximum Length of an Attribute in an EL Expression" by Steve Muench helps
http://radio.weblogs.com/0118231/2007/06/04.html#a839
Frank -
How can we change the column sequence from 1st to 7th position
Hi
I have a table in which I have a column naming DNAME and it is is on the first position I want to change its position to 7 that is the last one. The table is huge filled with data.
Is there ant way in which I can cange the position of the column with out recreating in into another table and then renaming it.
ThanksHello,
The sequence of a column in a table is meaningless and you should treat it as such. The column ordering you see when you run a "select * from ..." query is based on the physical implementation of the table, which is completely separate from the logical interpretation, and should not be relied on in a programmatic context. It should essentially be viewed as "random" and prone to change with the physical storage properties of the table (although this is not always the case, there is no assurance of this).
One way to do this (which happens to be the easiest and least resource-intensive in this case) is to create a view (derived relation) of the base table, with the columns ordered in the specific sequence you desire. But really, the column ordering here is still meaningless, and the only time your application should rely on the order is when you specifically list the columns you require in a query -- but NEVER a "select *".
cheers,
Anthony -
Anyone know how to dynamically change the border of UILoader Component
Hi All
I am loading multiple instances of UI loader containing
external SWFs on my stage. When user double clicks on the video
thumbnail, an instance of UIloader will be placed on the main
stage.The user can place as many UIloader instances on the main
stage. My aim is that if user puts any UIloader on top of already
existed UIloader, the existed loader will be replaced with the
placed loader. I am successful in implementing that by using
hitTestObject method for that. I am planning to provide enough
feedback to the user for this UIloader replacement process, so i
was thinking to change the border of the UIloader as soon as the
dragged UIloader hits the already existed UIloader.
Does anyone know how would I animate UIloader to give enough
feedback to the user that it is being replaced. Creating an
invisible movie and moving it wherever UIloader goes doesn't sound
much efficient.
Please help me out in figuring out this problem. Also
if anyone has better idea to give enough feedback to user, that
will also be welcome. Just to be little clear i have provided
little pseudo-code(below) of what i am doing here.
Any help will be highly appreciated.
Thanks
Anuj
/***************Abstract Pseudo code for my
problem*****************/
myUILoader.startDrag();
//Putting video on top of already existed videos
var trackChild:Number=container.getChildIndex(myUILoader);
var childContainer:DisplayObject=
container.getChildAt(trackChild);
for( var z:Number=0;z<=container.numChildren-1;z++)
var restChild:DisplayObject=container.getChildAt(z);
if(childContainer!=restChild)
if((childContainer.hitTestObject(restChild))==true)
//Show Animation during replacement
//how would i give feedback here
container.removeChild(restChild);What is a Lopp Browser?
A typo I meant Loop Browser, sorry. On your iPad you can see the iTunes Library in the Loop Browser:
Open the Loop Browser
Tap the Loop Browser button in the control bar. The Loop Browser button is available only in Tracks view.The first time you open the Loop Browser, it shows the Instrument grid.
I was told by a sales person at the Apple Store at one of my One-on-One sessions, that Mac would not transpose nor change tempo because my "live music" was not a "midi" file.
GarageBand 10.0 will change the pitch and tempo of live recordings - midi as well as audio instruments, but not of audio files. But you need to enable the "Follow tempo and pitch" option in the track editor.
Then you can transpose the region using the "Transpose" slider.
And if you change the project tempo in the LED display after you enabled "Follow Tempo&Pitch" the recording will follow the new tempo.
You can test this with a new project created on your mac. -
How can I change the order of html form data submitted to me via email?
I am having customers contact me via an html form posted on my website using the "sendtoemail" command. When I receive the data in an e-mail it is not presented in the order it appears on the web page and I can't seem to find out what dictates the order the data is presented in or how I can change it.
Anyone have any ideas on how I can make HTML form data elements appear in the order I want?
Thanks,
AndyOr find a commercial form-to-email script that is compatible with your server's configuration (PHP, ASP, Perl...) and customize it to your needs.
Formm@ailer PHP from DB Masters
http://dbmasters.net/index.php?id=4
FormToEmail.com (free & pro versions available)
http://formtoemail.com/formtoemail_pro_version.php
Tectite
http://www.tectite.com/formmailpage.php
Forms to Go from Bebosoft (script generating software)
http://www.bebosoft.com/products/formstogo/overview/
Nancy O. -
How to dynamically change the table name inside a view
Hi All,
create table t_auto_feeds
id number,
table_name vachar2(100));
insert into t_auto_feeds values(1,'T_FEED_POSITIONS');
insert into t_auto_feeds values(2,'T_KAP_MTM');
assume there are 100 records on id=1 in T_FEED_POSITIONS and 100 records of id=2 in T_KAP_MTM (id 1 is present only in t_feed_positions & id 2 is present only in t_kap_mtm)
i need to create a view such that it needs to give the count of records based on the id
create or replace view aa_view as
select count(*), id from t_feed_position group by id
union
select count(*), id from t_kap_mtm group by id;
I am getting a proper result when i query the view like select * from aa_view where id=1 but will the other union query seems to be a overhead?. I am having 10 such tables configured for different id in t_auto_feeds.so do i need to put 10 unions or is there a better way to handle this stuff.
I know i can use a PLSQL block and dynamically build view structure, the problem is the view itself is configured in a table , so i cant write a proc for this.. can this aa_view be modified such that it queries only the table(using the t_auto_feeds ) which matches the id rather than the entire list.
Kindly help me in this regard and let me know in case u need any further information from my side.>
so do i need to put 10 unions or is there a better way to handle this stuff.
>
Yes - you need 10 unions
Yes - there is a better way so that only one of the 10 queries does anything.
You can use SYS_CONTEXT to control the query selection.
Here is an example of using SYS_CONTEXT. Try this code in the SCOTT schema.
create or replace context VIEW_CTX using SET_VIEW_FLAG;
create or replace procedure SET_VIEW_FLAG ( p_table_name in varchar2 default 'EMP')
as
begin
dbms_session.set_context( 'VIEW_CTX', 'TABLE_NAME', upper(p_table_name));
end;
select * from emp where 'EMP' = sys_context( 'VIEW_CTX', 'TABLE_NAME' );
select * from emp1 where 'EMP1' = sys_context( 'VIEW_CTX', 'TABLE_NAME' );
select * from emp2 where 'EMP2' = sys_context( 'VIEW_CTX', 'TABLE_NAME' )
exec set_view_flag( p_table_name => 'EMP' );
exec set_view_flag( p_table_name => 'EMP1' );
exec set_view_flag( p_table_name => 'EMP2');
SELECT sys_context( 'VIEW_CTX', 'TABLE_NAME' ) FROM DUAL
CREATE VIEW THREE_TABLE_EMP_VIEW AS
select * from emp where 'EMP' = sys_context( 'VIEW_CTX', 'TABLE_NAME' )
union all
select * from emp1 where 'EMP1' = sys_context( 'VIEW_CTX', 'TABLE_NAME' )
union all
select * from emp2 where 'EMP2' = sys_context( 'VIEW_CTX', 'TABLE_NAME' )
SELECT * FROM THREE_TABLE_EMP_VIEWNote that you set the context for the table you want. This doesn't have to be a table name it could just be flag value
-- use the emp table
exec set_view_flag( p_table_name => 'EMP' );
-- ue the emp1 table
exec set_view_flag( p_table_name => 'EMP1' );
-- use the emp2 table
exec set_view_flag( p_table_name => 'EMP2'); -
How to dynamically change the table name for a update statement
Hi All,
I need to update a coulumn xyz in either of tables abc and efg based on some condition.
I wrote a cursor which has union of two queries(one querying abc and other efg)
Now based on some inparameter only one will be executed at a time.
And based on some condition a coulumn xyz needs to be updated which is in either of the table.
As the update condition is same
Update abc/efg set xyz=data where condition
I am looking to initialize a variable like v_tname based on some condition and update like
update v_tname .........
(Exactly that may not be like so, But looking a technique like this)
Please helpIf there is only two tables you'll need to update then you are better off using static SQL and implementing something like this instead:
DECLARE
update_condition BOOLEAN;
BEGIN
-- initialize update_condition
update_condition := <some_boolean_check>;
IF update_condition
THEN
UPDATE abc
SET xyz = some_val
WHERE some_col = some_other_val;
ELSE
UPDATE fgh
SET xyz = some_val
WHERE some_col = some_other_val;
END IF;
END;
/Hope this helps! -
How do I change the highlight color of forms?
I'm using Acrobat Pro X.
I need the form highlights to be transparent when another user opens the pdf, views and fills individual forms out.
Trying to keep this very simple for end user. I don't want to give the user instruction on how to go to preferences and change highlight color.
Please help!
Thanks!Wow! I was trying too hard I guess. Will this bypass the preferences set
on another users computer?
Thanks,
Chris -
How do I change the date format in Forms Central from mm/dd/yyy to dd/mm/yyy?
I'm using Forms Central on a Mac and need to convert the US date format to the one used in Australia ie from mm/dd/yyyy to dd/mm/yyyy. I've tried Field properties and can't see any other options. Is there a quick fix somewhere?
This is covered in the free documentation provided by Adobe for Acrobat JavaScript.
Acrobat JavaScript documentation
Use date objects
Convert the date string to the date object, then use the util.printd method to reformat the date object as needed. -
Changing the Column Header and Hiding the Column dynamically???
Hi friends..
I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
To dynamically change column headers without javascript, check this blog out...
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
Waited too long to publish this... Madan beat me to it, so there is some overlap here...
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
Edited by: LC143 on Oct 27, 2008 9:21 AM
Maybe you are looking for
-
WEP not working in Vista Home Premium with Linksys WRT54GS version 5
Bought a new computer with Vista and installed the router. Made it so WEP is enabled. When I try to connect with a laptop or my other computer in my home, it will not take the WEP key and says it can't connect. I've reinstalled and redid the network,
-
Using Host in Forms is not freezing the caller
I am using the Host built-in command to launch a web page from a client/server Forms6i application. I've found there are many different ways I can do this: I can hardcode the path of the browser executable, host('"C:\Program Files\Internet Expl
-
Analyzing and recognizing a sound file with a squeak
I am running a brake test on a piece of equipment. I would like to be able to use Labview and a microphone, record every stop cycle and analyze the wav file for a squeak. I would just like to be able to keep track of how many squeaks occured during t
-
EPS files in ID contact sheets
Bridge CS2 on Mac OS 10.3.9 I am trying to produce ID contact sheets generated from Bridge's Tools menu of the images on a number of CDs of product photos, but have run into a snag. I am having a recurrence of a problem once solved some time ago in t
-
Every time i turn off my computer and back on i have to unistall and reinstall adobe flash player
Everytime i turn off my computer and back on i have to unistall and reinstall adobe flash player11.8 . I have tryed everything i could find on the internet, nothing helps. please help. I wish i could contact adobe directly but don't know how. Been t