Want to design a generic custom Message
I want to have a generic mechanism of showing custom messages. I have a common library where I want to keep most of code needed for that.
Common library:
public function customUserMessage(message:String, parent:Sprite):void
var message1:String = "";
if (message.indexOf("%") != -1)
message1 = message.substring(0, message.indexOf("%")) + String.fromCharCode(13);
message = message1 + " " +
message.substring(message.indexOf("%") + 1, message.length);
var alert:Alert = Alert.show(message, "Warning!", Alert.OK|Alert.CANCEL, parent, alertClickHandler, null);
PopUpManager.centerPopUp(alert);
// Event handler function for displaying the selected Alert button.
public function alertClickHandler(event:CloseEvent):Object
return event.detail;
Implementation:
customUserMessage(userMessage, this);
At this point I would want to catch user's respond. How would I change my code?
Thanks a bunch
Your alertClickHandler has the user's response. What would you like to do with it?
I don't think you should be returning it in the event handler.
You could dispatch a custom event, and pass the event.detail to that custom event, then listen for that custom event somewhere in the app.
Sometimes you may need to add a listener for the custom event on systemManager instead of on, say, the app, as popups are in their own display list.
Helpful links:
http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postI d=11246
If this post answers your question or helps, please mark it as such.
Similar Messages
-
I want to show custom message in a inputText of type BigDecimal
Hi ADF Experts,
Jdev 11.1.1.7.0
I have a inputtext of type BigDecimal, And if I enter any character or 123.32.45 it gives the error message. I want to override the text message with my message.
Any help on these is appeciated.
I googled but did not find any correct document. Please help.
Thanks
Susantasee this
ADF: Custom Error Handler to Display Custom Message to User
Just check what error code you getting currently.
Amit Sharma's Blog: Change ADF Default Error Messages
any question tel me -
Infopath 2013 generic error message that displays
In an InfoPath 2013 custom form that I created, I have several columns that are required. If the user does not enter all the data that is required, the automatic generic error message is displayed.
I would prefer to make the error message that is more 'user friendly'. Thus can you tell me if there is a way to make the error message more user friendly? If so, would you tell me how to make the message more user friendly?
The generic error message that is automatically displayed is:
'InfoPath cannot submit the form because it contains errors. Errors are marked with either a red asterisk (required fields) or a red, dashed border (invalid values). use ctl+shift+O to go to the next error. Use ctl+shift+I to view error details'.
Thus can you show me how to make this error message more user friendly in InfoPath 2013?Hi Wendy,
All the error messages for the InfoPath form errors are stored in the intlcorestrings.js file which is located in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\INC.
If you want to modify the error messages, then you can modify that file to change the corresponding error message.
Per my knowledge, the error you want to customize is IntlCoreStrings.k_strSubmitBeforeErrors and IntlCoreStrings.k_strSaveSubmitErrorInformation.
You can change the two lines.
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Old imac using snow leopard printed just fine to Ricoh cl2000n printer that is connected to airport extreme via ethernet (as was the imac). New iMac with Lion otherwise same cable configuration and the computer cannot find the printer. It searchs and spits out a generic error message. Any suggestions? Thanks!
Is your printer listed?
http://support.apple.com/kb/HT3669
If not then you need to get the driver and install it.
Otherwise you may want to reset the printing system.
http://support.apple.com/kb/ht1341 -
Custom message on list view in SharePoint 2013
Hi,
I have created a list with multiple view and i set the target audience for each view.I set the views for each dept.So when a person not belongs to the corresponding group click on the other view,he will get a custom message like " you are not authorized
member for this view".
Can you help me to figure out this?
Thank youHi Aditi,
According to your description, my understanding is that you want to display custom error message when a user who does not belong to the corresponding group clicks the view.
Per my knowledge, the view will not be available if the target audience is set for the view and the user does not have permission to access the view.
If the target audience is set based on the groups, then the user who does not belong to the group will not have the permission to see the view on the view menu, and he will not be able to click the view.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Web-based BEx: How to display a customized message on the variable screen??
Hi All,
I'm now using the web-based BEx. Recently I want to display a customized message (e.g. the usage of the report) on the first page (i.e. the variable entry screen) of the query. Is it possible?
Thanks.
BR,
M. NgHi marco,
Check here. itmay help you.
Custom Messages WAD
Thanks,
Vijay. -
DISPLAY ONLY CUSTOM MESSAGE WITH SRW.MESSAGE
Hi.I created a report with Report Builder 9i.I also created two form parameters of type date.I put inside the validation trigger in the property inspector the following plsql code.
function FROM_DATEValidTrigger return boolean is
v_date VARCHAR2(12);
date1 date;
begin
v_date := :from_date;
date1:=TO_DATE(v_date, 'DD/MM/YYYY');
return (TRUE);
EXCEPTION
WHEN OTHERS THEN
SRW.MESSAGE(546,'My Message');
return (FALSE);
end;
This code works fine.Supose the user input wrong data for example 29/02/2003 displays an alert message
with my custom message.But after this displays an another message from the Report Builder like this:
Rep-0546:Invalid parameter input.
My question is .Is it possible display only my custom message with the SRW.MESSAGE built in procedure?
Thanks in advance Panagiotis.Hi,
I am using this function in my Validation process to display Error when user gives null input
function DEPT_IDValidTrigger return boolean is
begin
-- Check for Null Value here
if(:DEPT_ID is null) then
raise SRW.NULL_ARGUMENTS;
else
return true;
end if;
Exception
-- Exception For Null Value
when SRW.NULL_ARGUMENTS then
srw.message(100, 'Please Enter Dept ID');
raise srw.program_abort;
end function ___ ;
Function is correct but the error message i am getting at the client side is as follows ::
"*MSG-00100: Please enter Dept IDREP-1419: 'dept_idvalidtrigger': PL/SQL program aborted.* "
It seems it is adding some system level error.
but i want only my custom message to be displayed on the client side ::
*"Please Enter Dept ID"*
Is this Possible in Oracle 6i. -
Adding custom message in exception list of F110 transaction without adding payment block
Hi All,
My requirement is to add custom message in exception list of F110 transaction based on certain fields validation without adding payment block .
I tried using BTE 1820 where I can add my validation but am not able to add the custom message in exception list.
Thanks,
Mihika.Hi Raymond,
Thanks for your reply.
I did checked the document and tried giving the S and I message in my BTE with trace option checked on Additional log screen.
But Success and information message doesn't showed in Exception List.
If I set the Error message the Proposal gets cancelled and I can see my error message in log. (We don't want this option as in this option proposal is not getting created)
If I set the Payment block I can see that logged in exception list. But we don't want to set the payment block but the message should appear in exception list.
I added the message using simple message statement. Will you please advice if any other way to add the message other than using the MESSAFE statement.
Thanks,
Mihika. -
Add custom message to PO_DATA for PO_STANDARD_XSLFO.xsl
Problem Description:
How do Add a custom message to PO_DATA for use withing PO_STANDAR_XSLFO.xsl stylesheet?
<fo:table>
<fo:table-column column-width="180mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="cover_page_text" >
<xsl:choose>
<xsl:when test="PO_DATA/REVISION_NUM > 0 and PO_DATA/AMENDMENT_PROFILE ='Y' and
PO_DATA/SIGNED='T' ">
<xsl:value-of select="PO_DATA/AMMENDMENT_MESSAGE"/>
</xsl:when>
<xsl:otherwise >
<xsl:value-of select="PO_DATA/COVER_MESSAGE"/>
</xsl:otherwise>
</xsl:choose>
</fo:block> </fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
I have already built custom_cover_message using application_developer/message forms and generated it.
I would like to change COVER_MESSAGE to CUSTOM_COVER_MESSAGE.
Question: How could this be achieved? Any suggestion Please.Hi
I want to know at what instances we can see the amendment message or cover message..Can you please let me know..I am not seeing this for all times..what is the reason
kp -
Long Text of a custom message class on a pop up screen
Hi All,
I have a custom message class and i have few custom messages with short text and long texts.
Then i have a ALV report output which displays the message class and message number and my requirement is when i do F1 on the message number i want the long text to be displayed on a popup screen
Can anyone give me an idea as how to approach this
Thanks in advancehi,
try the below code.
DATA: HELPINFO LIKE HELP_INFO.
DATA: LONGTEXT LIKE TLINE OCCURS 1 WITH HEADER LINE.
DATA: EXCLUDEFUN LIKE SY-UCOMM OCCURS 1 WITH HEADER LINE.
longtext-tdline = 'Sales Order test help'.
append longtext.
CALL FUNCTION 'HELP_DOCULINES_SHOW'
EXPORTING
CUCOL = 10
CUROW = 3
HELP_INFOS = HELPINFO
LINENR = 1
TABLES
EXCLUDEFUN = EXCLUDEFUN
HELPLINES = LONGTEXT -
How to provide custom messages while viewing reports in obiee.
Hi,
I would like to show some custom message in all Dashboards. For instance when a user logs into the Dashboard, the report would take long time to get processed. So what to do so that we could provide custom message stating that.."Please select the required parameters..." or something else.. After selecting the necessary prompts, he would get what he wants..Is there some option in OBIEE where we can place mentioned messages.Thanks in advance...
Regards,
AjayOne thing
You set default value which is not a database value... like Select Prompt Value something like this...
You set this kind of text as default value for all dashboard prompts.
So, when you click first time dashboard, it runs but leads to get No Results.
Here you can select prompt values and can run reports..
Or else
see this..
http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
Use this logic and in writing SQL for prompt, write a custom message that you want to write and then the report name while doing union.
like (let's say your report name is: "Rgn Dlrs")
select case when 1=0 then Markets.region else 'Select Prompt values and Report' end from paint
union all
select case when 1=0 then Markets.region else 'Rgn Dlrs' end from paint
now implement the guided navigation for section and try.... -
[CLOSED]How to create a custom messages
Hi All,
I have a page and one save button .on press of save button, i want to show a custom message like "Applied changes are saved."
Can anybody please elaborate how to create a custom message and how to show it through Controller.
may i use
OAException message = new OAException("AK",
"FWK_TBX_T_EMP_DELETE_CONFIRM", tokens, INFORMATION, null);
-Thanks,
Avinash
Message was edited by:
user624747When i used the code
OAException confirmMessage = new OAException("JTM","JTM_SAVE_SUCCESSFULL",null, OAException.CONFIRMATION,null);
throw confirmMessage ;
i am getting following error :
Error :
Application: JTM, Message Name: JTM_SAVE_SUCCESSFULL.
I have created the message "JTM_SAVE_SUCCESSFULL" through
Application Developer --> Application --> messages responsibility and given its type as error , application as "mobile application foundation" and then "ran the generate message" program.
After that i checked the fnd_new_message table . the message is there. -
How to Generate a Custom Message for A Custom Code.
Hello,
Can anyone guide me on this -
Application : 11.5.10.2
We have a cutom Trigger through which we want to display a custom message.
We have re-generated the .msb, but it seems that something is missing.
Following are the Steps We have followed to generate a custom message.
1. Responsibility "Application Developer"
2. Go to Applications
3. Select Message
4. Define a new custom message.
5. Save
6. Run Request " Generate Message"
Now when the trigger gets fired , we are not able to see our Custom message.
How do we call this messge in the custom code.
Pl. help on this , also can i get some reference note id's on this.
Thanks in advance.
Regards,
JennyCREATE OR REPLACE TRIGGER KPC_RCV_TRANSACTIONS_INTERFACE
AFTER INSERT OR UPDATE ON APPS.RCV_TRANSACTIONS_INTERFACE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
--- This Trigger Validates following things
--- 1. Creation date is not modified and is greater than system date.
--- 2. RTV should not be possible before ERS is generated.
--- 3. Inspection should not be possible through Deliver Transactions Responsibility
--- 4. Delivery of Material should not be possible through Inspection Responsibility
--- 5. Item is Excisable and Excise Invoice No Or Excise Invoice Date is Missing
--- 6. Only Inspected and Accepted material is Delivered to Subinventory
--- 7. Check for Existance of 57F4 for Subcon Job Receipts
--- 8. Check Taxes are not Missing
--- 9. Check Taxes are Correct
--- Declaring The Variables
DECLARE
v_grade number := 0;
v_employee_id number := 0;
v_responsibility varchar2(100) := 'Z';
v_closed_taxes_count number := 0;
v_taxes_count number := 0;
v_invoiced_status_code varchar2(01) := 'N';
v_57f4_id number := 0;
l_date_ok varchar2(01) := 'N';
l_gate_date_ok varchar2(01) := 'N';
l_cenvatable_flag varchar2(01) := 'N';
l_excise_ok varchar2(01) := 'N';
l_rtv_ok varchar2(01) := 'N';
l_inspection_ok varchar2(01) := 'N';
l_delivery_ok varchar2(01) := 'N';
l_rej_delivery_ok varchar2(01) := 'N';
BEGIN
-- Get Looged in Responsibility Name
begin
SELECT upper(responsibility_name)
INTO v_responsibility
FROM apps.fnd_responsibility_vl
WHERE responsibility_id = apps.fnd_global.resp_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_responsibility := 'Z';
WHEN OTHERS THEN
v_responsibility := 'Z';
END;
--- Modifications Done by SMT to Bypass checking for following Users
if (apps.fnd_global.user_id < 1091) then
return;
end if;
--- if (apps.fnd_global.user_id in (1090,1111,1112,1126,1540,1591,1570,1881)) then
--- return;
--- end if;
---- Collect the Information Required from Other Tables
--- Check whether item is cenvatable
l_cenvatable_flag := 'N';
begin
select 'Y'
into l_cenvatable_flag
from apps.ja_in_po_line_location_taxes jipll
where upper(jipll.tax_type) in ('EXCISE','CVD')
and jipll.po_header_id = :new.po_header_id
and jipll.po_line_id = :new.po_line_id
and jipll.line_location_id = :New.po_line_location_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
l_cenvatable_flag := 'N';
WHEN OTHERS THEN
l_cenvatable_flag := 'N';
end;
--- Check whether Taxes are closed
v_closed_taxes_count := 0;
begin
select count(distinct jit.tax_id)
into v_closed_taxes_count
from apps.ja_in_tax_codes jit,
apps.ja_in_po_line_location_taxes jipl
where nvl(jit.end_date,sysdate)< sysdate
and jit.tax_id = jipl.tax_id
and po_header_id = :new.po_header_id
and po_line_id = :new.po_line_id
and line_location_id = :new.po_line_location_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_closed_taxes_count := 0;
WHEN OTHERS THEN
v_closed_taxes_count := 0;
end;
--- Check Existance of Taxes
v_closed_taxes_count := 0;
begin
select count(distinct jit.tax_id)
into v_taxes_count
from apps.ja_in_tax_codes jit,
apps.ja_in_po_line_location_taxes jipl
where nvl(jit.end_date,sysdate)< sysdate
and jit.tax_id = jipl.tax_id
and po_header_id = :new.po_header_id
and po_line_id = :new.po_line_id
and line_location_id = :new.po_line_location_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_taxes_count := 0;
WHEN OTHERS THEN
v_taxes_count := 0;
end;
--- Modifications Done by SMT to Get Invoice Status Code of the Original Transaction
v_invoiced_status_code := 'N';
BEGIN
SELECT 'Y'
INTO v_invoiced_status_code
FROM apps.ap_invoices_all ap,
apps.rcv_shipment_headers rcv
WHERE ap.invoice_num like '%'||rcv.receipt_num||'%'
AND ap.org_id = rcv.ship_to_org_id
AND rcv.shipment_header_id = :NEW.shipment_header_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_invoiced_status_code := 'N';
WHEN OTHERS THEN
v_invoiced_status_code := 'N';
END;
--- RAISE_APPLICATION_ERROR(-200151,'Incorrect Transaction Date...');
--- Check the transaction_date is correct or not
l_gate_date_ok := 'Y';
IF ((:new.ship_head_attribute6 is null) or
(to_date(:new.ship_head_attribute7,'DD-MON-YYYY') < (sysdate-3)) or
(to_date(:new.ship_head_attribute7,'DD-MON-YYYY') > sysdate)) then
l_gate_date_ok := 'N';
END IF;
--- Check the transaction_date is correct or not
l_date_ok := 'Y';
IF (to_date(:new.transaction_date,'DD-MON-YYYY') < to_char(sysdate,'DD-MON-YYYY')) then
l_date_ok := 'N';
END IF;
--- Check whether Excise Invoice No and Excise Date is present
l_excise_ok := 'Y';
if (l_cenvatable_flag = 'Y' and
:new.ship_head_attribute1 is null and
upper(:new.destination_type_code) = 'RECEIVING') then
l_excise_ok := 'N';
end if;
if (l_cenvatable_flag = 'Y' and
:new.ship_head_attribute2 is null and
upper(:new.destination_type_code) = 'RECEIVING') then
l_excise_ok := 'N';
end if;
--- Check whether Inspection transaction is being made in correct Responsibility
l_inspection_ok := 'Y';
if (upper(:new.destination_type_code) = 'RECEIVING') then
if (v_responsibility like '%RECEIPT%QA%') then
l_inspection_ok := 'Y';
else
l_inspection_ok := 'N';
end if;
else l_inspection_ok := 'Y';
end if;
--- Check whether Delivery transaction is being made in correct Responsibility
l_delivery_ok := 'Y';
if (upper(:new.destination_type_code) in ('INVENTORY','SHOP FLOOR')) then
if (v_responsibility not like ('%RECEIPT%QA%')) then
l_delivery_ok := 'Y';
else
l_delivery_ok := 'N';
end if;
else l_delivery_ok := 'Y';
end if;
--- Check whether RTV is made prior to generating the ERS Invoice
l_rtv_ok := 'Y';
if (upper(:new.transaction_type) in ('REJECT','RETURN TO VENDOR')) then
if (v_invoiced_status_code = 'INVOICED') then
l_rtv_ok := 'Y';
else
l_rtv_ok := 'N';
end if;
else l_rtv_ok := 'Y';
end if;
--- Check Error and Display Proper error message
--- Transaction Date Error
if (nvl(l_date_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','Wrong GRR Date');
apps.fnd_message.raise_error;
end if;
--- Gate Entry Date Error
if (nvl(l_gate_date_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Wrong Gate Entry Date');
apps.fnd_message.raise_error;
end if;
--- Return CENVAT Error
if (nvl(l_excise_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Enter Excise Invoice No');
apps.fnd_message.raise_error;
end if;
--- Return Closed Taxex Error
if (nvl(v_closed_taxes_count,1) != 0) then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Wrong');
apps.fnd_message.raise_error;
end if;
--- Return Taxes Missing Error
if (nvl(v_taxes_count,0) = 0) then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Missing');
apps.fnd_message.raise_error;
end if;
--- Return from trigger, if Transaction Type = 'RECEIVE'
if (upper(:new.transaction_type) = 'RECEIVE') then
return;
end if;
--- Return Inspection Error
if (nvl(l_inspection_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Inspection Not Allowed');
apps.fnd_message.raise_error;
end if;
--- Return Material Delivery Error
if (nvl(l_delivery_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Delivery not Allowed');
apps.fnd_message.raise_error;
end if;
return;
END KPC_RCV_TRANSACTIONS_INTERFACE; -
Problem to create change pointer for custom message type - Idoc creation
Hi,
We want to create IDOC and send it out when the data of "planning calendar" changes. So we are trying to generate change pointers whenever entries in Table T439I (Planniing calendar) data change.
We created a message type, activated change pointers generally and maintained change relevant fields for message type (not sure if this step is done correctly). But not getting any change pointer in table BDCP2 when I create a new planning calendar in MD25.
Can anybody help / guide?Thanks once again,
I had linked idoc type and message type in we82. Now after i activate the change pointers. I try to generate the IDOC type using BD21. It gives me the error message :<b> "Message type ZP2PPROJ_MSG cannot be sent with change pointers"</b>
whereas in my segments i am using all the master data only (i.e. PRPS, PROJ,PRHI). Please throw some light on this.
Also please clarify, do i need to make an entry of this custome message type in the partner profile ?
Rgds
kewal. -
Tcode to send custom data using custom message type in ALE
I have ceated custom message type and i want to send data to say system B.I wanted to know Tcode to send custom data using custom message type in ALE.
for example:
material data...message type = matmas....tcode = BD10.
like this.
i hope you have got my question.
plz guide me?
regards
mallikarjun mangaloreHi,
Sending data through ALE is not a single-step process. Take a look at http://www.sapgenie.com/ale/. The paper at http://www.sapgenie.com/sapgenie/docs/ale_whitepaper.doc is a wonderful resource for the ALE process.
Regards
Maybe you are looking for
-
Workbook error 310 - save not possible
Hi, when I want to save a workbook I receive error message 310 - saving not possible. Nothing in my authorizations where changed. In sdn I found also no hint. Any idea?
-
Hi, We have a client requirement either to extract vacacy created in Global HR or provide a link on vacancy card to 3rd party system ? Regards, Manoj
-
My Firefox does not have the regular menu items how do I get them to show?
I appear to not have the usual tool bars and am unable to make them appear. Usually this is not a problem but right clicking aon anything and everywhere gives me useless options.
-
Iphone 3G searching - not recognizing sim
iphone 3G searching - not recognizing sim since update on itunes
-
Select_list_from_query using union
In manual Tabular form, how to have the APEX_ITEM.SELECT_LIST_FROM_QUERY when the query is like SELECT 'A' D, 'A' R FROM DUAL UNION ALL SELECT 'B' D, 'B' R FROM DUAL UNION ALL SELECT 'C' D, 'C' R FROM DUAL UNION ALLPlease suggest Sanjay