How to dynamically change alert in context
Dear,
I have created alert on BP confimation, I want to pass dynamic information like credit status, current credit balance, hyperlink etc.
Can somebody help me?
Thanks & Regards,
Nilesh Parsekar
Udit,
Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
Craig...
Similar Messages
-
How can i change alert text size?
hello everyone
how can i change alert text size?
thanksWhat about using the properties of the alert, there are several settings for the font (also one for the size)
-
How to dynamically changes items properties
How to dynamically changes items properties likes position order in tabular view, width, prompt
Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
The following built-in procedures are available for setting object properties at runtime:
- SET_BLOCK_PROPERTY
- SET_CANVAS_PROPERTY
- SET_FORM_PROPERTY
- SET_ITEM_PROPERTY
- SET_LOV_PROPERTY
- SET_MENU_ITEM_PROPERTY
- SET_PARAMETER_ATTR
- SET_RADIO_BUTTON_PROPERTY
- SET_RECORD_PROPERTY
- SET_RELATION_PROPERTY
- SET_VIEW_PROPERTY
- SET_WINDOW_PROPERTY
The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
To determine if a particular property can be set programmatically, refer to the property descriptions in online Help. -
How can i change alert tone for incoming messages on my ipad, for imessage?
How can i change alert tone for incoming messages on my ipad, for imessage?
Settings>Sounds>Text Tones
-
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 To dynamically change values in custom form
Hi,
Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
Global variables values will be different for each record.
Pls let me know how i can achieve this.
Regards
UditUdit,
Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
Craig... -
How to dynamically change start time in calendar
Hi !
Is it possible dynamically change start time attribute in calendar. Let's say I'd like to have start time = sysdate through 24 for displayHello Johann,
If you created the calendar region using the wizard, it should have created a page item 'P#_CALENDAR_DATE' (# being your page number). Look at the Default setting for that item and it will likely be:
return to_char(localtimestamp,'YYYYMMDD');This is the default date for the calendar (current date), in 'YYYYMMDD' format. Any code that sets this item to a date in 'YYYYMMDD' format should tell the calendar to display the calendar for that date. For example, I just changed it to this:
return '20080101';And it displayed the calendar for that January, 2008. To test further I created a submit button and a branch, and in that branch I specified to set my P1_CALENDAR_DATE item to 20080601 and when I clicked the button it redisplayed the calendar for June, 2008.
Hope this helps,
John -
How to dynamically change data type
Hi
Let say I have 1 byte in the folowwing hex format (1F )
Then if I say convert it to 24 bit then the number should become 1F 00 00 and if I say convert it 32 bit the number should become 1F000000
Could you please help me to implement this in LabVIEW ?
ThanksAh right, now I see why you mentioned dynamically changing the data type - LabVIEW is a strictly typed language which means you must end up with one of the numeric formats in LabVIEW (with 64-bits being the largest). If you're going to have more than 8 bytes, I'm not sure what the solution would be, if you're going to have 8 bytes or less then I would just assume the worst case and convert/fit the numbers into a U64.
Here's an example:
I am starting off with an empty U64, taking each input byte and shifting the U64 left by one byte and then adding the input byte.
I guess that leads to my next question - what are you going to do with the numbers? Would having an array of U8's or converting the bytes to a character string not be better? If you have a string or array these can have a dynamic length so you can more easily manipulate the data (e.g. by performing string/array indexing functions).
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
How to dynamically change link in Page Viewer Web Part SharePoint 2010?
Newbie Question:
Situation:
a) Created: Two Site Pages page 1 & page 2
b) Page 1: Includes simple hyperlink text Example - Home | About Us | Contact etc
c) Page 2: Includes Page Viewer Web Part that includes link to an existing web site (this site has all of the pages) and the olde site is shown in SharePoint site
Complication:
a) I want the users to click on Page 1 - About Us etc
b) The View on Page 2 - page viewer link should be dynamically updated to About Us . If user clicks on contact us on Page 1..the page 2 view should change dynamically to Contact US
ASK:
a) How do I dynamically update the links in Page Viewer web part using minimal coding (if possible)
Any Guidance will be greatly appreciated.Hello,
You can also used the another appoch,
Create your custom webpart , then add the PageViewer Webpart at run time,Create webpart property for the custom webpart to change the url and add the PageViewer webpart runtime,
I have created the custom webpart property to specified the url at the tine of edit the webpart
Here is the code
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Collections;
using Microsoft.SharePoint.Publishing.WebControls;
using Microsoft.SharePoint.WebPartPages;
namespace MyNameSpace.MyPageViewer
[ToolboxItemAttribute(false)]
public class MyPageViewer : System.Web.UI.WebControls.WebParts.WebPart
private string _customUrl = "http://yourdefaulturl";//Specified default url
[WebBrowsable(true)
, Personalizable(true)
, Bindable(true)
, Browsable(false)
, DefaultValue("")
, Category("Custom Page Viewer Properties")
, WebPartStorage(Storage.Shared)
, FriendlyName("PageViewer URL")
, Description("PageViewer URL")]
public string CustomUrl
get { return _customUrl; }
set {if (string.IsNullOrEmpty(value) == false) { _customUrl = value; } }
#endregion
public MyPageViewer()
this.ChromeType = PartChromeType.None;
protected override void OnInit(EventArgs e)
EnsureChildControls();
base.OnInit(e);
protected override void CreateChildControls()
string pageViewerUrl = CustomUrl;
Microsoft.SharePoint.WebPartPages.PageViewerWebPart pageViewerWebPart = new Microsoft.SharePoint.WebPartPages.PageViewerWebPart();
if (!string.IsNullOrEmpty(pageViewerUrl))
pageViewerWebPart.ContentLink = pageViewerUrl;
pageViewerWebPart.ChromeType = PartChromeType.None;
pageViewerWebPart.Height = "382";
pageViewerWebPart.Width = "682";
this.Controls.Add(pageViewerWebPart);
protected override void OnLoad(EventArgs e)
base.OnLoad(e);
protected override void OnPreRender(EventArgs e)
base.OnPreRender(e);
Hope this will help you
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
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,
drama9346Sure 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/ -
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'); -
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. -
Best practice needed: how to dynamicly change rowset for a dataTableModel
Hello creator folk,
I need an advice on the following problem.
I start from the insertUpdateDelete tutorial, and I stick to the very first part - creation of the first page with a dropdown and at table.
Now I add a second dropdown to add another control level on my table, on tripType for example - simple, it work without problem.
My problem: my dropdowns have a "off" value - that is a value indicating that the filtering according to this value should be disabled. For example, i want to filter displayed data according to person, tripType, or both.
As a result, we now have 3 different request, one with personId = ?, one with tripTypeId = ? and the last one with both. But the displayed table is the same.
I already done such a page, by using the "rendered" option: my JSP contains 3 time the same page, each with a dedicated rowset, but only one is rendered at a time. But I don't like this solution, it is a hell to maintain, and I don't want to imagine if my client ask for a third dropdow!!!
Another possibility: create a separate page for each possibility. Well, quite the same than the previous one.
Is it possible at runtime level to change the command associated to a rowset, and then to the linked RowSetDataModel? I tried the following way:
In the constructor of the page:
if (isPersonAndTripType()) {
myRowSet.setCommand(REQUEST_PERSON_TRIPTYPE);
myDataTableModel.setObject(1, this.getSessionBean1().getPersonId());
myDataTableModel.setObject(2, this.getSessionBean1().getTripTypeId());
} else if (isTripTypeOnly()) {
ewslive_lasteventIlotRowSet.setCommand(REQUEST_TRIPTYPE);
myDataTableModel.setObject(1, this.getSessionBean1().getTriptypeId());
} else {
// the default rowset, no change.
myDataTableModel.setObject(1,
this.getSessionBean1().getPersontId());
myDataTableModel.execute();And in each dropdown_processValueChange, after updating tripId or personId:
if (isPersonAndTripType()) {
myRowSet.setCommand(REQUEST_PERSON_TRIPTYPE);
myDataTableModel.setObject(1, this.getSessionBean1().getPersonId());
myDataTableModel.setObject(2, this.getSessionBean1().getTripTypeId());
} else if (isTripTypeOnly()) {
ewslive_lasteventIlotRowSet.setCommand(REQUEST_TRIPTYPE);
myDataTableModel.setObject(1, this.getSessionBean1().getTriptypeId());
} else {
myRowSet.setCommand(REQUEST_PERSON);
myDataTableModel.setObject(1,
this.getSessionBean1().getPersontId());
myDataTableModel.execute();First run (one person selected by default), everything is OK. But when I change a dropdown I got an exception: the page constructor is called, all ok. The dropdown_processValueChange is called, the correct request is linked to the dataTableModel, and the function return normally, then the exception occures:
Exception Details: javax.faces.el.EvaluationException
javax.faces.FacesException: java.sql.SQLException: [OraDriver] Not on a valid row.
Possible Source of Error:
Class Name: com.sun.faces.el.ValueBindingImpl
File Name: ValueBindingImpl.java
Method Name: getValue
Line Number: 206 Help needed!!!I've done something similar in my current app, the only difference I see being that I retrieve the value from the dropdown directly rather than going through the sessionbean as I don't need to save the selection.
I've managed to iron out all the bugs and it works well now. Not near my development machine or I'd post the code. I do have a couple of questions:
Why do you have the if/else setup in the constructor? If the page is being called for the first time I don't see why you need it.
Why do you useewslive_lasteventIlotRowSet.setCommand(REQUEST_TRIPTYPE);instead ofmyRowSet.setCommand(REQUEST_TRIPTYPE);?
I think this is causing your problem as you haven't shown where you set the datacache for myDataTableModel
to ewslive_lasteventIlotRowSet instead of myRowSet.
You can also set all of your dropdowns to use the same event handler, cuts down on the duplicate code :) -
Dear all:
I want to change the buadrate of serial com without closing the serial com, but it failed when I use the function "SetCommConfig(m_hCom, &Com_cfg, Com_cfg_S) " to reset the buadrate ,baudrate is no change when use GetCommConfig to read back the value.
Appreciated all of your advice . TKS!
Code with WINAPI as beloow:
CreateFile(..) ;
GetCommState(..);
dcb.BaudRate= 1000000 ;
SetCommState(..);
//......do other things
//change baudrate to normal without closing port .
GetCommConfig(m_hCom, &Com_cfg, &Com_cfg_S);
Com_cfg.wVersion = 0X100;
Com_cfg.dwProviderSubType = 1;
Com_cfg.dcb.BaudRate =9600 ;
Com_cfg.dcb.StopBits =1 ;
SetCommConfig(m_hCom, &Com_cfg, Com_cfg_S);
GetCommConfig(m_hCom, &Com_cfg, &Com_cfg_S);
Solved!
Go to Solution.This topic has been discussed some years ago: see here. Please note that even if I made that sample program which changes the baud rate without closing the port, I never used it in a real situation: you'll need to made your tests and check if this solution can satisfy your needs in the short and long term.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to dynamic change Step Name?
I have a step inside For Loop. I would like that step have different name related to loop Number. how do I do it?
For example
In Test stand,
for i=0; i++;i<10
stepnamei
end
So in this way, If the step fail, I could know on which loop it fails.
Please advise on it.Hi,
try this example
link
Regards
Ray FarmerMessage Edited by Ray Farmer on 04-04-2005 07:47 AM
Regards
Ray Farmer
Maybe you are looking for
-
We have 3 devices used by 3 different people under the same Apple ID, how do I stop receiving my daughters texts? Both sent and received.
-
BADI/USER-EXIT related to product hierarchy
Hi All, I am a technical consultant and i got this requirement. -When creating sales org views for a material the field MVKE-PRODH has to be initialized with the value of MARA-PRDHA field. -When updating MARA-PRDHA, all MVKE-PRODH must be updated by
-
My old computer crashed and I lost my Ipod, how do I download the music to a new on?
So about 2 years ago I got the Ipod touch, and a while after my computer crashed. I never put the music onto a new computer, because the Ipod allowed me to download music there and then. But now I have lost my Ipod-touch and have a buch of songs sti
-
Hi Experts, I am in SAP HR module for the past 2 years.I am preparing for the certification for the same.If anyone has the idea regarding the same please send me the thorough details.I have the hardcopy of THR10 and THR12.Apart from these materials h
-
Today when i turned on my phone it was working fine. When i held down the "A" key to put it to sleep, i noticed that the 4 buttons on either side of the trackpad did'nt dim. (Back, Blackberry menu, answer call, & end call buttons). So i tried it agai