Application process code is not getting the value
Hi
I have implemented search functionality on page 0 (One Textbox and one ImageButton).
on clicking on image button
I am calling a application process to redirect a page on the basis of entered value.
I am using following code in application process:
DECLARE
l_number NUMBER;
rec_count NUMBER;
BEGIN
l_number := TO_NUMBER(:P0_SEARCH);
SELECT COUNT(*) INTO rec_count FROM CASE_DATA WHERE CASE_NUMBER = l_number;
if rec_count >= 1 then
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:l_number');
End if;
exception
when others then
NULL;
END;
:P0_SEARCH is the name of search textbox that is on page 0.
when i clicking on image button then this value of l_number is not passed to the
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:l_number');
its giving an error
ORA-01722: invalid number
and in url its showing
http://apex.oracle.com/pls/otn/f?p=31774:42:16398188927210884::NO::P42_CASE_NUMBER:l_number
but its working if i am putting the static value as
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:22');
its redirecting the right page as
http://apex.oracle.com/pls/otn/f?p=31774:42:16398188927210884::NO::P42_CASE_NUMBER:l4
So, please help me how to pass the value to redirect.
Thanks
-PM
Hi,
Try
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:' || l_number);Br,Jari
Similar Messages
-
Object - MLST_NETW container not getting the values?
Hi,
I created a custom FM for the object - MLST_NETW and event STARTED
and in the workflow container I created Element for this object - by selecting Obect type - MLST_NETW
Now the problem is - When we do status change in tcode - CJ20N it is triggering the custom worklfow but in the worklfow container it is not getting any values. Container fields are empty. I need to get the project defination field value to the workflow.
Can any one tell me what could be wrong?
Thanks in advance.
M.Hi Murali,
Yes. Binding for event to workflow not defined.
For that, press Ctrl + F8 in the workflow template then it will take you to verision dependent tab. There you can find the start events tab.
Here only you entered the Business object and event. Right? So there one button is there for binding. CLick on it and check whether event to workflow binding has done or not.
Event container EVT_OBJTYPE should binded with your workflow business object.
Thanks. -
Unable to get the value from the textfield in valueChangeEvent
Hi,
I have created one custom textField by extending the CoreInputText. Now i have attched default ValueChangeListener to it. I am using this textField in my application.
Now i type some thing and do a focus lost, the value change listener get called. i want to validate the value entered. In that listener method if i take the getSource() from ValueChnageEvent object and do a getValue() I am getting the entered value.
My problem is that if i do a getValue() of the textField i am not gettting the value entered.
How can i get the entered value from the textfield.? Is there any method to notify to do this?
Thanks in advance.Hi,
I tried to the value from coreInputText also. If i check the getValue method of the component, i am getting the last updated value. I have debug the FlowPhaseListsner also. And i found that this listener is calling before the updateModel phase. Due to that i am not getting the value from the Field. -
Not getting field value in Input field of field exit
Hi all
I am using field exit for data element GWLDT in transaction code IE02. But in this field exit I am not getting the value entered in the field "Begin guarantee date(GWLDT)" in the INPUT field of field exit.How I can get the value in the INPUT field of field exit?
Regards
DeepakUse this statement in source code.
output = input. -
How to get the value of passwordexpirationtime at LDAP
LDAP Gurus,
I want to sent an email notification before user's password is expired, so I need get the value of attribute "passwordexpirationtime" for all the users.
while I tried a lot of ways, but I can not see and get the value.
e.g command and output of 1 user as follow
ldapsearch -p 370 -h ldapserver.abc.com -b 'ou=People,dc=abc,dc=com' objectclass=*
dn: uid=user1,ou=People, dc=abc,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
objectClass: shadowaccount
givenName: John
sn: Paul
description: John Paul
loginShell: /bin/bash
gidNumber: 9042
uidNumber: 9042
uid: user1
cn: John Paul
gecos: John Paul
homeDirectory: /export/home/user1
Question:
which ldap command and options can be used to get the value of attribute "passwordexpirationtime" for all the users.
Environment:
Sun Directory Server 5.2_Patch_4
Thanks you in advance.Thanks your guys help first.
1.we need send email notification to user before password expired as a lot of users not often login servers(UNIX) and they even can not get password expired prompt, these users are personal UNIX users, not service users. we need the value of passwordexpirationtime to do a script to send email.
2. I tried these command you advised, while still can not get the value of passwordexpirationtime.
1)ldapsearch -p 370 -h ldapserver1.abc.com -b 'ou=People,dc=abc,dc=com' objectclass=* passwordexpirationtime
dn: uid=d411,ou=People, dc=abc,dc=com
dn: uid=user2,ou=People, dc=abc,dc=com
2)ldapsearch -p 370 -h ldapserver1.abc.com -b 'ou=People,dc=abc,dc=com' objectclass=passwordobject passwordexpirationtime
ldapsearch -p 370 -h ldapserver1.abc.com -b 'ou=People,dc=abc,dc=com' objectclass=passwordobject
output is nothing.
3.Enrique mentioned about passwordobject object class to have access to the passwordexpirationtime attribute. I am not sure if it has been
granted/defined or not.while I check the DS GUI as follow(sorry I can not past screenshoot here, so I need describe as follow)
when I go to DS server GUI, configuration->Schema and select "passwordobject" under Standard Object Classes(Read-Only), I can see there are "passwordExpirationTime" Under Allowed Attributes.
if NOT, what I need do to grant the access (or through create custom object), how this will affect our ldap server as ldap server is very critical.
4.I did above ldapsearch using unix root user, do I need use ldap directory manager user to do search, if so , how I can put manager username/password into ldapsearch command?
Again thank all your help. -
Not able to get the values from screen field?
hello
i am using MIRO and there is a screen name withholding tax and from there i want to retreive the withholding tax code before saving so that i can do some validations on it but how can i retrieve the values.
when i press f1 there it shows structure not the table and structure contains no value so please help me in this so that i can retreive that value during run time
thank youHi Vikas,
you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
in this badi please see the importing and exporting parameters, you will get the values of withholding tax code as TE_RBWS in export parameters.
Please search in google or SCN you will get how to use it. -
How to get the values from IDXML during a Pre processing
Hi,
I have a requirement to validate the attributes in the IDXML request while deactivating a user. I have configured a workflow with the steps "Initiate" "Externalaction" "Disable" "Commit".
The following is my IDXML request. I want to get the values that is coming in the IDXML in the pre action (written a c++ plugin) and perform certain validations.
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas-xmlsoap.org/soap/envelope/"
xmlns:oblix="http://www.oblix.com">
<SOAP-ENV:Body>
<oblix:authentication xmlns:oblix="http://www.oblix.com" type="basic">
<oblix:login>adminuser</oblix:login>
<oblix:password>password1</oblix:password>
</oblix:authentication>
<oblix:request application="userservcenter" function="workflowDeactivateUserSave">
<oblix:params>
<oblix:param name="ObWorkflowName">obworkflowid=9bbb88b273b1012d000086E812d695ad,obcontainerId=workflowDefinitions,o=Oblix,dc=dnb,dc=com</oblix:param>
<oblix:param name="uid">[email protected],ou=dnbCustomers,ou=People,dc=dnb,dc=com</oblix:param>
<oblix:param name="attrName_1">UserID</oblix:param>
<oblix:param name="attrValue_1">[email protected]</oblix:param>
<oblix:param name="attrValue_1_old">[email protected]</oblix:param>
<oblix:param name="attrOperation_1">REPLACE</oblix:param>
<oblix:param name="attrName_2">ApplicationID</oblix:param>
<oblix:param name="attrValue_2">12345611</oblix:param>
<oblix:param name="attrValue_2_old">123456</oblix:param>
<oblix:param name="attrOperation_2">REPLACE</oblix:param>
<oblix:param name="attrName_3">SubscriberNum</oblix:param>
<oblix:param name="attrValue_3">09787655</oblix:param>
<oblix:param name="attrValue_3_old">09787655</oblix:param>
<oblix:param name="attrOperation_3">REPLACE</oblix:param>
<oblix:param name="noOfFields">3</oblix:param>
</oblix:params>
</oblix:request>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How to get the values "ApplicationID","SubscriberNum" inside the preaction hook (c++). Please provide suggestions.
Thanks,
LakshmiRead the doc, write the code, test it and debug it . http://download.oracle.com/docs/cd/E15217_01/doc.1014/e12491/idapi.htm#CDEIDDAF
-
Not able to get the value from type defined in other progarm
Hi All,
I have a create a type in one package spec(Globally), now i am using the same type in another package.Simply i am calling the first package and try to store the value in Type and use the same type in second package.
But i am not able get the value
Type declaration
Declared in package Spec
TYPE t_aa_derive_tbl_type IS TABLE OF xxxx%ROWTYPE;
t_aa_derive t_aa_derive_tbl_type;
Package 1
Package1. PROCEDURE name(
some parameters);
is
Cursor
c1 is Select * from dual;
begin
OPEN c_aa_derive;
FETCH c_aa_derive
BULK COLLECT INTO t_aa_derive;
CLOSE c_aa_derive;
END get_aa_derive;
In My second package
I am calling
Package1. PROCEDURE name(
some parameters);
and then i am trying to
for i in 1 .. package1.t_aa_derive.COUNT
LOOP
end loop;
I am not able entered the loop for some reason.
Could some one guide me if anything i missed.
Cheers,
SanI have a create a type in one package spec(Globally), now i am using the same type in another package.Simply i am calling the first package and try to store the value in Type and use the same type in second package.
Why?
1. Why aren't you just using SQL to do the work?
2. Why don't you just open a CURSOR and pass that instead?
BULK COLLECT INTO t_aa_derive;
3. Why aren't you using a LIMIT clause? Are you sure that only a very small number of rows will be queried?
4. Why aren't you using a PIPELINED function instead of passing a collection?
Using collections with potentially unlimited numbers of rows is not scalable. Also, using collections can be more difficult for 'data consumers' to work with than if you just use a CURSOR or PIPELINED function.
Make sure you are using the proper architecture so that your code is both modular, scalable and easy to use. -
How to get the values and attributes of Longlived processes by using ProcessID.
Hi Experts,
For every process we creates, LC ES2 creates processID.
we know that if you creates a long lived process, all the values which are in proces will be stored some where in DB.
Here my requirement is by using processID I need to get all/some values/variables stored in database.
I am not able to get values using processID. Here I don't have clue on how to get the values.
Please tell me how to get the same by using Process Management. Link/guide would be helpful
Thanks
Praveen.Searchable means you can put a filter criteria on it (e.g. where amount > 50000)
Visible means you can add have this column returned as an output (and therefore you can add it as column in listview and see it in Task Details).
These two attributes were provided so that queries could be done against the process variables, but the exact contents of the variables are not allowed to be seen. -
After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?
Hi
Error -49 opWrErr File already open with write permission
Trash the preference files while application is NOT Running.
from Karsten Schlüter
Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
This issue occours only on MacOs machines using 10.7x
try switching-off the Local Mobile Backup
in Terminal copy/paste
sudo tmutil disablelocal
Re-launch Mac
Yours Bengt W -
Why I can not get the email value?
I tried to pull out the email address from database, but for some reason i could not get it. Here is the code.
Javabean:
public class ProgramBean {
private String programId;
private String programTitle;
private String programDesc;
private String sponsorId;
private String sponsorName;
private String providerId;
private String provider;
private String providerEmail;
private String providerPhone;
private String programStatus;
private String receiveDay;
private String receiveMonth;
private String receiveYear;
private String receivedDate;
private String approvedDay;
private String approvedMonth;
private String approvedYear;
private String approvedDate;
private String approvedBy;
private String notifyBy;
private String expiredDay;
private String expiredMonth;
private String expiredYear;
private String expiredDate;
private String attachments;
private String website;
private String programComments;
private String section;
private String notes;
private String requestedMaxCeu;
private String approvedMaxCeu;
private String whoAdded;
private String dateAdded;
private String whoChanged;
private String dateChanged;
public ProgramBean() {
public ProgramBean(String programId,String programTitle, String programDesc, String sponsorId, String sponsorName,String providerId,String provider, String providerEmail, String providerPhone,String programStatus,
String receiveDay,String receiveMonth,String receiveYear, String approvedDay, String approvedMonth, String approvedYear,
String approvedBy,String notifyBy,String expiredDay,String expiredMonth,String expiredYear,String attachments, String website,String programComments,
String section,String notes,String whoAdded,String dateAdded,String whoChanged,String dateChanged){
this.programId = programId;
this.programTitle = programTitle;
this.programDesc = programDesc;
this.sponsorId = sponsorId;
this.sponsorName = sponsorName;
this.providerId = providerId;
this.provider = provider;
this.providerEmail = providerEmail;
this.providerPhone = providerPhone;
this.programStatus = programStatus;
this.receiveDay = receiveDay;
this.receiveMonth = receiveMonth;
this.receiveYear = receiveYear;
this.approvedDay = approvedDay;
this.approvedMonth = approvedMonth;
this.approvedYear = approvedYear;
this.approvedBy = approvedBy;
this.notifyBy = notifyBy;
this.expiredDay = expiredDay;
this.expiredMonth = expiredMonth;
this.expiredYear = expiredYear;
this.attachments = attachments;
this.website = website;
this.programComments = programComments;
this.section = section ;
this.notes = notes;
this.whoAdded = whoAdded;
this.dateAdded = dateAdded;
this.whoChanged = whoChanged;
this.dateChanged = dateChanged;
public void setProgramId(String b_programId){
this.programId = b_programId;
public String getProgramId(){
return programId;
public void setProgramTitle(String b_programTitle){
this.programTitle = b_programTitle;
public String getProgramTitle(){
return programTitle;
public void setProgramDesc(String b_programDesc){
this.programDesc = b_programDesc;
public String getProgramDesc(){
return programDesc;
public void setProgramStatus(String b_programStatus){
this.programStatus = b_programStatus;
public String getProgramStatus(){
return programStatus;
public void setApprovedDay(String b_approvedDay){
this.approvedDay = b_approvedDay;
public String getApprovedDay(){
return approvedDay;
public void setApprovedMonth(String b_approvedMonth){
this.approvedMonth = b_approvedMonth;
public String getApprovedMonth(){
return approvedMonth;
public void setApprovedYear(String b_approvedYear){
this.approvedYear = b_approvedYear;
public String getApprovedYear(){
return approvedYear;
public void setApprovedDate(String b_approvedDate){
this.approvedDate = b_approvedDate;
public String getApprovedDate(){
return approvedDate;
public void setProvider(String b_provider){
this.provider = b_provider;
public String getProvider(){
return provider;
public void setProviderEmail(String b_providerEmail){
this.providerEmail = b_providerEmail;
public String getProviderEmail(){
return providerEmail;
public void setSponsorId(String b_sponsorId){
this.sponsorId = b_sponsorId;
public String getSponsorId(){
return sponsorId;
public void setSponsorName(String b_sponsorName){
this.sponsorName = b_sponsorName;
public String getSponsorName(){
return sponsorName;
public void setProviderPhone(String b_providerPhone){
this.providerPhone = b_providerPhone;
public String getProviderPhone(){
return providerPhone;
public void setProviderId(String b_providerId){
this.providerId = b_providerId;
public String getProviderId(){
return providerId;
public void setReceiveDay(String b_receiveDay){
this.receiveDay = b_receiveDay;
public String getReceiveDay(){
return receiveDay;
public void setReceiveMonth(String b_receiveMonth){
this.receiveMonth = b_receiveMonth;
public String getReceiveMonth(){
return receiveMonth;
public void setReceiveYear(String b_receiveYear){
this.receiveYear = b_receiveYear;
public String getReceiveYear(){
return receiveYear;
public void setReceivedDate(String b_receivedDate){
this.receivedDate = b_receivedDate;
public String getReceivedDate(){
return receivedDate;
public void setApprovedBy(String b_approvedBy){
this.approvedBy = b_approvedBy;
public String getApprovedBy(){
return approvedBy;
public void setNotifyBy(String b_notifyBy){
this.notifyBy = b_notifyBy;
public String getNotifyBy(){
return notifyBy;
public void setExpiredDay(String b_expiredDay){
this.expiredDay = b_expiredDay;
public String getExpiredDay(){
return expiredDay;
public void setExpiredMonth(String b_expiredMonth){
this.expiredMonth = b_expiredMonth;
public String getExpiredMonth(){
return expiredMonth;
public void setExpiredYear(String b_expiredYear){
this.expiredYear = b_expiredYear;
public String getExpiredYear(){
return expiredYear;
public void setExpiredDate(String b_expiredDate){
this.expiredDate = b_expiredDate;
public String getExpiredDate(){
return expiredDate;
public void setAttachments(String b_attachments){
this.attachments = b_attachments;
public String getAttachments(){
return attachments;
public void setWebsite(String b_website){
this.website = b_website;
public String getWebsite(){
return website;
public void SetProgramComments(String b_programComments){
this.programComments = b_programComments;
public String getProgramComments(){
return programComments;
public void SetSection(String b_section){
this.section = b_section;
public String getSection(){
return section;
public void SetNotes(String b_notes){
this.notes = b_notes;
public String getNotes(){
return notes;
public void SetWhoAdded(String b_whoAdded){
this.whoAdded = b_whoAdded;
public String getWhoAdded(){
return whoAdded;
public void SetDateAdded(String b_dateAdded){
this.dateAdded = b_dateAdded;
public String getDateAdded(){
return dateAdded;
public void SetWhoChanged(String b_whoChanged){
this.whoChanged = b_whoChanged;
public String getWhoChanged(){
return whoChanged;
public void SetDateChanged(String b_dateChanged){
this.dateChanged = b_dateChanged;
public String getDateChanged(){
return dateChanged;
public void SetRequestedMaxCeu(String b_requestedMaxCeu){
this.requestedMaxCeu = b_requestedMaxCeu;
public String getRequestedMaxCeu(){
return requestedMaxCeu;
public void SetApprovedMaxCeu(String b_approvedMaxCeu){
this.approvedMaxCeu = b_approvedMaxCeu;
public String getApprovedMaxCeu(){
return approvedMaxCeu;
Servlet:
HttpSession session = request.getSession();
ProgramBean updatedProgramInfo = new ProgramBean();
try
Class.forName("oracle.jdbc.OracleDriver");
conn = DriverManager.getConnection("");
stmt_get_classes = conn.createStatement();
sql = "SELECT p.program_id,upper(p.program_title),upper(p.program_desc),p.sponsor_id,p.provider_id, upper(d.last_name||', '||d.First_name),p.program_status, "+
" to_char(p.date_received,'mm/dd/yyyy'), to_char(p.date_approved,'mm/dd/yyyy'),upper(p.approved_by), Upper(p.notified_by), to_char(p.date_expiration,'mm/dd/yyyy'), nvl2(p.agenda_file,'AGENDA - '||p.agenda_file,'DON''T FORGET THE ATTACHMENTS!'),"+
" p.website, upper(p.program_comments), p.section, upper(p.administrator_notes), upper(p.cre_user), to_char(p.cre_date,'mm/dd/yyyy hh:mm:ss PM'), upper(p.mod_user), to_char(p.mod_date, 'mm/dd/yyyy hh:mm:ss PM'),"+
"d.email;
rs = stmt_get_classes.executeQuery(sql);
while(rs.next()){
updatedProgramInfo.setProgramId(rs.getString(1));
updatedProgramInfo.setProgramTitle(rs.getString(2));
updatedProgramInfo.setProgramDesc(rs.getString(3));
updatedProgramInfo.setSponsorId(rs.getString(4));
updatedProgramInfo.setProviderId(rs.getString(5));
updatedProgramInfo.setProvider(rs.getString(6));
updatedProgramInfo.setProgramStatus(rs.getString(7));
date =rs.getString(8);
updatedProgramInfo.setApprovedBy(rs.getString(10));
updatedProgramInfo.setNotifyBy(rs.getString(11));
date =rs.getString(12);
updatedProgramInfo.setAttachments(rs.getString(13));
updatedProgramInfo.setWebsite(rs.getString(14));
updatedProgramInfo.SetProgramComments(rs.getString(15));
updatedProgramInfo.SetSection(rs.getString(16));
updatedProgramInfo.SetNotes(rs.getString(17));
updatedProgramInfo.SetWhoAdded(rs.getString(18));
updatedProgramInfo.SetDateAdded(rs.getString(19));
updatedProgramInfo.SetWhoChanged(rs.getString(20));
updatedProgramInfo.SetDateChanged(rs.getString(21));
updatedProgramInfo.setProviderEmail(rs.getString(22));
System.out.print(rs.getString(21));
session.setAttribute("ProgramBean",updatedProgramInfo);
response.sendRedirect("UpdateProgram.jsp");
JSP:
<a href="mailto:<c:out value="${sessionScope.ProgramBean.providerEmail}"/>">Email <c:out value="${sessionScope.ProgramBean.provider}"/> </a>
The problem is I could not ge tthe value: ${sessionScope.ProgramBean.providerEmail}, but I have no problem to get the value: ${sessionScope.ProgramBean.provider}.
By the way, the original program was written by someone else, i am kind of new of jsp stuff. I just tried to add an email part which shows on the bold text. Did I do something wrong? Thanks.Mate,
Two things...
1. Please try just printing the email address with a straight: <c:out value="${sessionScope.ProgramBean.providerEmail}"/>, then do a VIEW SOURCE off the result... I SUSPECT that the @ in the email address is being translated by the c:out into a character entity... if that's the case just use escapeXml="false" in your c:out tag... but then you'll need to beware of crosssight scripting attacks, apparently.
See: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/tld-summary.html
... or just use the standard SQL tag library, and avoid the issue completely.
2. When you post, format your code with the \[code\] \[\/code\] tags... and just remove all the superflious code (don't just bold the pertintant bits... It took me longer to read your code then you took to post it, and I won't bother again.
Cheers. Keith. -
JPA Error:Could not get a value to be injected from the factory
HI friends ,
I am trying to replicate the example JPAEXample01 using JPA in CE1 from the blogs written by
Sabine Heider/Adrian Görler.
During the testing of the method create employee i am getting the following error.
"Could not get a value to be injected from the factory."
I tried couple of examples using the above process, still held up with same error.
Any pointers to trouble shoot this ?
Thanks in advance
Chandra DasariHI Isaias Cristiano Barroso,
There are lot of enries most of them pertaining to properties set to yes or no.
out of which therre are tow errors. the log is as follows
Message Info: Failed (javax.management.MBeanPermission,#[:j2eeType=trace,name=EndToEndCentralMBean,],isActive,getGuidByName,getTraceLevelByName,getTraceLevelByName,importTrace,isFileExistsLocally,removeTraceFile)java.lang.reflect.InvocationTargetException
Failed (javax.management.MBeanPermission,*,DISPLAY)java.lang.reflect.InvocationTargetException
category: com.sap.security.core.role.PermissionData
Location:com.sap.security.core.role.PermissionData.get(ClassLoader)
Frankly the above log is above my understanding ,Prob it may help to you undertand my the issue
Thanks once again -
Get the value from dropdown list (selectedIndex) and text field -- not working
Hi All,
I am trying to find and change by the values selected by user using dropdown and text field. Here is the code.
ChangeRevDetails();
function ChangeRevDetails(){
var myDialog = app.dialogs.add({name:"Enter copyright information"});
// var monthlist = col1.dropdowns.add('myList', undefined, myList);
var col1 = myDialog.dialogColumns.add();
var col2 = myDialog.dialogColumns.add();
col1.staticTexts.add({staticLabel:"Month:"});
col1.staticTexts.add({staticLabel:"Year:"});
col1.staticTexts.add({staticLabel:"Rev. no.:"});
var myList = [ "January", "February", "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});
var MyRev = col2.textEditboxes.add({minWidth:100});
var RevMonth = (myList [myMonth.selectedIndex]);
var RevYear = myYear.editContents;
var RevNumber = MyRev.editContents;
var RevToReplace1 = RevMonth +", "+ RevYear;
var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
var myResult = myDialog.show();
if(myYear.editContents == "") //entry is ""
alert("Please enter some text into the contents field.");
ChangeRevDetails();
else if(myResult == true) //user entered datas
alert (RevMonth);
alert (RevYear);
alert (RevNumber);
alert (RevToReplace1);
alert (RevToReplace2);
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
// grep find/change
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
app.changeGrepPreferences.changeTo = RevToReplace1;
app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
app.activeDocument.changeGrep();
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
else //implies user clicked cancel
myDialog.destroy();
The problem is, it is not taking the value which the user selects from the dropdown and the text field. It takes the default value as "January" and the year is "2013" as both of these values are given as selectedIndex:0 and editContents:"2013". I have compared the coding with some other working scripts as well, but it is not working. I have added several alert boxes to check the value we get.
Also, the find and change is also not working. Please help me on this. Thanks.
Regards,
Muthuraj. DChange the order for dialogresults:
var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});
var MyRev = col2.textEditboxes.add({minWidth:100});
var myResult = myDialog.show();
if(myYear.editContents == "") //entry is ""
alert("Please enter some text into the contents field.");
ChangeRevDetails();
else if(myResult == true) //user entered datas
var RevMonth = (myList [myMonth.selectedIndex]);
var RevYear = myYear.editContents;
var RevNumber = MyRev.editContents;
var RevToReplace1 = RevMonth +", "+ RevYear;
var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
didn't have a look for the find change problem -
BP_CONT: not getting the contact person email value from custom controller
Hi Experts
not able to find the email address in any of the context node, actually my requirement is while creating the BP contact , get the email address BP_ADDR/StandardAddress STRUCT.E_MAILSMT . take this email id and check whether this email id exists in system if exists throw the error while saving . for this I did the codin in BP_CONT component on save method but while saving some times my custom controller is getting initiated some times it was not containing any value , kindly let me know how can I get the email value of contact person in BP_CONT component in view BPCONTOverview .
here is my code on method eh_onsave
lr_curo_bpcont_custcntrlr ?= me->get_custom_controller( controller_id = 'BP_CONT/BPCont' ).
IF lr_curo_bpcont_custcntrlr IS BOUND.
TRY.
lr_entity_privstdaddr ?= lr_curo_bpcont_custcntrlr->typed_context->privstdaddr->collection_wrapper->get_current( ).
lv_privstdaddr_e_mailsmt = lr_entity_privstdaddr->get_property_as_string('E_MAILSMT'). " Get runtime email value of contact person
lr_entity_bpcategory ?= lr_curo_bpcont_custcntrlr->typed_context->builheader->collection_wrapper->get_current( ).
lv_partner_category = lr_entity_bpcategory->get_property_as_string('BP_CATEGORY'). " Get Partner Category value
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
ENDTRY.
ENDIF.
here the problem is some times I'm getting the value and some times I'm not getting value the related objects also through get related entities contact person emial is not getting populated any where
kindly help what is going wrong
Thanks & Regards
RajasekharHello Rajasekhar,
Could you please share how you resolved this issue? I have the exact same requirement (duplicate check based on email).
Kind regards -
I ordered Quicktime Pro. I have a serial number and and my ordered status shows that it was electronically sent. It is not in my download folder or in my list of applications. How do I get the download, if I have a serial number?
I ordered Quicktime Pro. I have a serial number and and my ordered status shows that it was electronically sent. It is not in my download folder or in my list of applications. How do I get the download, if I have a serial number?
There is no download as such. When you purchase QT 7 Pro, you are just purchasing a registration key that "unlocks" the QT 7 "Pro" editing features already built into the QT 7 Player but not activated without the key. Since you are listed as using the Lion OS, you need to check your "Applications > Utilities" folder to see if QT 7 is already installed there.
If it is, then you will need to open the app, open the "Registration..." window under the "QuickTime Player 7" Menu and enter the "Registered To:" and "Registration code:" entries to activate the "Pro" features. Be sure to follow the instructions found on the web page I will post below.
If it is not already installed in the "Applications > Utilities" folder, then you will have to first download and install the special QT 7 Player v7.6.6 software found on the download page which is linked to the web page containing both installation and registration instructions which is included below.
http://support.apple.com/kb/HT3678?viewlocale=en_US&locale=en_US
Maybe you are looking for
-
Final Cut Pro Video Playback not in Widescreen for Anamorphic Material
I have a Panasonic DVX-100B hooked up to my computer and am running Final Cut Pro. I shot everything in the anamorphic squeeze mode. When I play this material back through my camera (which displays the material as widescreen because I forced it on th
-
Inventory Aging Data, Duplication in SAP B1 8.81
Hello Everyone, I have been working on Inventory Aging Report creation and has been facing with a problem. The data seems to get duplicated when i execute the report. I have attached the screen shot below for your reference. I have taken the followin
-
How can I determine what internal DVD drives are compatible w/ my G5?
I'd like to put a new DVD drive in my G5. It's one of the original 1.8 dual machines, with some extra RAM. I'm having trouble with the drive these days, and I'd like to figure out what drives are compatible. Thoughts?
-
HTTP Trigger - Lands in a CSQ then to an agent
Hello, I'm looking for a template script that will guide me through the following: •1) From a web page enter a phone number you want to be called at. •2) After clicking a submit key using an http trigger a phantom call will be made to the "
-
How can I unblock Java 7.55 on Firefox 29?
Working with a training site that requires Java. I have the latest Java Runtime build (7-55), Firefox blocks seem to be noted specifically on builds 25 to 44, but maybe later builds as well. My build is blocked. I've tried an article that describes u