Can't Set Item Value After Calling Stored Procedure
In a forms6i program unit, I call a stored procedure. The stored procedure executes successfully. Then I set the value of a date item on a data block to sysdate.
When I run the form and execute the program unit the stored procedure executes successfully, but then the program unit gives me a No Data Found error when I set the value of the date item on the block. The value of the date item never changes. However, if I comment out the call to the stored procedure, the date item changes to sysdate and there is no error message generated.
Just to be sure, I moved the logic to set the date item value to a separate button on the form. Then I re-ran the program unit. The stored procedure executed successfully. Then I clicked the button to set the value of the date field on the block, which gave me the same no data found error.
Then I commented out the call in the program unit and re-ran the test. The program unit executed. Then I clicked the button to set the date value in the block and it was set to sysdate with no errors.
Why can I not set the date item after running a stored procedure?
Seems like a MSDTC config issue
See if this helps
http://support.microsoft.com/kb/2027550/en-us
http://zarez.net/?p=1469
http://danieladeniji.wordpress.com/2013/03/06/microsoft-sql-server-linked-server-error-the-partner-transaction-manager-has-disabled-its-support-for-remotenetw/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Similar Messages
-
Can JDBC adapter be scheduled to call stored procedures
Can JDBC adapter be scheduled to call stored procedure in other database passing previous date as input parameter
Hi Gurus,
actually our scenario is jdbc->XI( <-RFC->)->File
Here our payload is around 5000 records
can it be advisable to use rfc synchronous communication.
The scenario will be exected only in night times.so can we schedule the adapter as we are using sp9.
If not what must be the good design approach.
And also after scheduling to a perticular period ,if there is any down time of XI server,will the process start immediately after the sever up or it will again watch for that perticular time. -
How to pass item value when call a procedure
Hi,
I tried to display a blob image by calling a procedure,
it's work if I hardcode the parameter, eg <img src="#OWNER#.download_my_file?p_id=1&p_picture=1" height=60 width=40 /img>
but if I pass the p_id value with some page item value <img src="#OWNER#.download_my_file?p_id=:P_ITEM_ID.&p_picture=1" height=60 width=40 /img>
the image don't display...is there anything wrong with my syntax?
Thanks
VincentVincent,
The &P_ITEM_ID. must be in uppercase?Yes, exactly like I showed. Substitutions strings in Application Express must always be in upper case, no exceptions.
Scott -
Can rs.last() be used after calling the stored procedure?
Can rs.last() be used after calling the stored procedure? If yes what should be the CURSOR types?
Can rs.last() be used after calling the stored
procedure? If yes what should be the CURSOR types?That would depend on the driver/database.
And as I said in your other post it is far more efficient to count records by just returning a count rather than a complete collection regardless of how you get to the end. -
How to set item values without using fields in branch's ACTION block?
Okay, I will try to say this in a easy way so it is not weird.
I have created a button, SAVE, that has a Branch of branch type: Branch To Function Returning A Page. This is my code for the branch:
if :P2008_NAP_SUPPORTING_MATERIALS = 'Yes' then
return '2092';
else
return '2040';
end if;
The code for this type of branch is stored in the ACTION block of the Branch page. The ACTION block for a Branch of branch type: Branch To Function Returning A Page is different than the ACTION block for a Branch of branch type: Branch To Page Or URL.
I need to set some item values with some specific values, which I can do with a branch type: Branch To Page Or URL. This is not possible with the branch type: Branch To Function Returning A Page. The ACTION block is totally different.
How can I set some values on say Page 2040 from Page 2008 without using fields in the branch's ACTION block?
Thank you in advance,
MaggieAndy and Scott,
I love seeing different perspectives in solving problems, it opens my eyes to new ways of looking at/using the tools (reserved words and 'Function returning a Page', etc.).
One of my pet peeves has been that on branches I was limited to only 10 variables to be passed (I know, who would want more - but there was an instance where I had to pass more), and an even more frustrating time when using report Column Linking, which limits me to 3 variables.
At least with the Branch linking I can use your suggestion Andy and add the variable setting statements into the function. I am assuming of course (and I should be able to) that I will be able to set more that 10 variables in a IF condition prior to the RETURN statement. This method will be much more understandable, for me, when looking through the branch at a later time to see what is happening, than an URL link where all the variable are strung out 'in a line' so to speak.
I will still need to use URL Target branching on Links contained within a Column Attribute when I need to pass more than 3 variables, of which I have several places where I do this.
Thomas -
Setting item value for child tab
My application has pages with 2-level tabs.
I can set item values using the "Set these items" and "With these values" fields in "Tab Target" section in the application builder page of the parent tab.
However, I cannot find the corresponding fields for the child tab application builder page. ie. certain page items are being set when the child tab is pressed.
Creating page process to set the items doesn't work for me, because I only want the items to be set if the requested page to the current page is not the same one.Ken,
Use an on-submit before-computations process that fires conditionally based on the request, e.g., only if the request is one of a specified list of tab names.
Scott -
Set field value whiel calling MM12
How Can I set the value of Schedule data to some value.
I am calling MM12 with material Number and Date.
I can set the material Number because it has parameter ID. How can I set the value of schedule date ?. it doesn't have parameter ID. Schedule date is mandatory field.
I need to call the MM12 Skip first screen.Do you think that you can use a partial BDC?
report zrich_0003
no standard page heading line-size 255.
data: bdcdata type table of bdcdata with header line.
data: bdcdate(10) type c.
parameters: p_matnr type mara-matnr,
p_datum type sy-datum.
start-of-selection.
call function 'CONVERT_DATE_TO_EXTERNAL'
exporting
date_internal = p_datum
importing
date_external = bdcdate.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-AEDAT'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MATNR'
p_matnr.
perform bdc_field using 'RMMG1-AEDAT'
bdcdate.
call transaction 'MM12' using bdcdata mode 'E'.
* Start new screen *
form bdc_dynpro using program dynpro.
clear bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
append bdcdata.
endform.
* Insert field *
form bdc_field using fnam fval.
clear bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
append bdcdata.
endform.
Regards,
Rich Heilman -
Can BI Publisher call stored procedures?
Can BI Publisher call stored procedures,no matter how?
Hi,Chris
"Stored PL/SQL procedures can be called from data Templates and Oracle Reports."Really?It is a great news for me.
Currently I am working on a poc.
There is a problem about calling Oracle stored procedures directly thru BI EE or BI Publisher.
Our customer has a lot of stored procedures in their previous system,they strongly hope our BI EE can call these sp directly.
All of these sp return the result set to the cursor,then the applications operate the cursor.
As there is no way can BI EE working with Oracle stored procedures or cursor,I am wondering whether can I call the sp from BI Publisher.
Can BI Publisher call sp or pl/sql?Can data template using pl/sql not only pure sql statements?
I have try write some pl/sql in data template,but it failed.It seems that the data template can only operate on some returned result sets.But sp won't.
If sp can be called thru data template,everything will be ok for me.For I can use pl/sql to opereate the returned cursor. -
How can I set a value of column in SSIS by using Replace
How can I set a value of a column in SSIS using a Replace in Derive columns. I have here NameCode and I need to Set = 1 Where NameCode like LIKE '____99____'
eg. 1006993010... if 5th and 6th characters are 99
Else 0
Hope to hear from someone soon and I appreciate great help here.If NameCode column is integer then you have to cast it correctly to String.
I am adding that to the expression provided by Rajen.
SUBSTRING((DT_WSTR,20)ProductCode,5,2) == "99" ? 1 : 0
-Vaibhav Chaudhari -
How can I set the value to a session bean from backing bean
Hi Experts,
How can I set the value to a session bean from backing bean where I have created getter and setter
methods for that variable.
Basically I am using ADFUtils class where I am able to get the value from session bean
using following expression
String claimType =
(String)ADFUtil.invokeEL("#{ClaimValueObj.getClaimType}");
Thanks
GayazGayaz,
Wrong Post !!
Post in JDeveloper and ADF
Thanks
--Anil -
Can I set the value of kernel paramaters less than default in Solaris 10?
Can I set the value of kernel paramaters less than default in Solaris 10? If specified less than default values for kernel parameters in /etc/system, system is getting default values for such as SHMMAX, SEMMSL, SEMOPM. Is the default kernel parameter values the minimum values in Solaris 10?
-YongYes, but not through /etc/system.
/etc/system is the old way to do it. As a backward compatibility, it will allow lines there to increase parameters but not decrease them. This is on the theory that many memory defaults were significantly increased, and older /etc/system setups were trying to increase small defaults, not decrease large ones).
Use prctl and set up a project.
Darren -
How can I set default values for Allocate Mode in AO config?
Hi, How can I set default values for allocate mode in AO config. To be specific, in the attached vi, I need to set the Allocate Mode in AO Config to 'Use FIFO Memory (6)' if the value inside my case structure is false and to 'no change (0)' if the value inside the case strusture is true.
Solved!
Go to Solution.
Attachments:
generateWaveformFIFO.vi 15 KBCreate two constants for the Allocate Mode input (right click > create > constant). Place one in the true case of the case structure, and place the other one in the false case. Wire them to the same tunnel (border of the case structure), then wire the tunnel to the Allocate Mode terminal of the AO Config. I don't have Traditional DAQ installed, but that should do it.
Misha -
How can i Set ArrayList values to selectOneListbox
Please Let me know How can i Set ArrayList values to selectOneListbox dynamically from the managed bean
Note: beanList is a list of selectItems
ArrayList<SelectItem> beanList; -
Can't set comboBox value that has valueMember / displayMember
Hello All,
I'm working on a project where I'm dynamically building a form according to a configuration schema. I'm pretty new at C# and got the following issue I can't get sorted out .
Any help, advise would be great !!!
When building a ComboBox I can't set the value I want !!
Probably I'm missing something.
I've tried several methods but nothing does it ... below my code.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ComboBoxSample
public partial class Form1 : Form
public Form1()
InitializeComponent();
CreateComboBox();
public void CreateComboBox(){
//Working variables
string valueMember = "idColumn";
string displayMember = "valueColumn";
//Create a panel and add to the form
TableLayoutPanel tlp = new TableLayoutPanel();
this.Controls.Add(tlp);
//Create the data source
DataTable dataTable = new DataTable();
dataTable.Columns.Add(valueMember, typeof(string));
dataTable.Columns.Add(displayMember, typeof(string));
dataTable.Rows.Add("A", "value A");
dataTable.Rows.Add("B", "value B");
dataTable.Rows.Add("C", "value C");
//Create a binding source
BindingSource bindingSource = new BindingSource(dataTable, null);
//Create a comboBox and bind the datasource
ComboBox comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.DataSource = bindingSource;
comboBox.ValueMember = valueMember;
comboBox.DisplayMember = displayMember;
Try and set the value
//No methode displays B --> combo stays on A
comboBox.SelectedValue = "B";
//comboBox.Text = "value B";
//comboBox.SelectedItem = comboBox.FindStringExact("value B");
//add the controles to the panel
tlp.Controls.Add(comboBox, 0, 0);Hi Viorel_,
Thanks for the reply!!
The setting the value in the form's Load event does work!
I agree for the form designer but it does not fit the need.
What I have is a "meta-data" driven logic where I define a screen that matches database fields:
Example : Screen new person has 5 fields : Gender (combobox) , first name (textbox) , last name (textbox) , type (combobox) ,birthday (datetime)
I have a Form derived class that takes this definition and builds each control at run time.
The definition also comes with potential default values (i.e. :type = client) so what I want to do is affect the value on the fly. This works fine with textbox or datetime. I'm trying to do the same for combobox.
Maybe I got this all wrong from a design point of view. -
Dynamically calling stored procedure and getting result set c++
Hello,
I am trying to write some c++ code that will dynamically bind values to a stored procedure and excute the procedure and get back a resultset. The problem I am running into is how to get back the resultset. Any help or example would be highly appreciated.int main(int argc, char* argv[])
OCIError* pOciError;
char* pConnectChar = "dbname";
char* pUsernameChar = "scott";
char* pPasswordChar = "tiger";
int answer;
OCIStmt* pOciStatement;
char* sqlCharArray = "BEGIN :success := sp_ListEmp; END;";
int id;
char ename[40];
OCIEnv* g_pOciEnvironment = NULL;
OCIServer* g_pOciServer = NULL;
OCISession* g_pOciSession = NULL;
OCISvcCtx* g_pOciServiceContext = NULL;
sb2* pIndicator=0;
sb2* pIndicator2=0;
sb2* pIndicator3=0;
OCIDefine* pOciDefine;
OCIDefine* pOciDefine2;
OCIBind* pBind;
OCIStmt* cursor;
answer = OCIInitialize(OCI_THREADED, NULL, NULL, NULL, NULL);
answer = OCIEnvInit(&g_pOciEnvironment, OCI_DEFAULT, 0, NULL);
answer = OCIHandleAlloc(g_pOciEnvironment, (void **)&pOciError, OCI_HTYPE_ERROR, 0, NULL);
answer = OCIHandleAlloc(g_pOciEnvironment, (void **)&g_pOciSession, OCI_HTYPE_SESSION, 0, NULL);
answer = OCIHandleAlloc(g_pOciEnvironment, (void **)&g_pOciServer, OCI_HTYPE_SERVER, 0, NULL);
answer = OCIHandleAlloc(g_pOciEnvironment, (void **)&g_pOciServiceContext, OCI_HTYPE_SVCCTX, 0, NULL);
answer = OCIServerAttach(g_pOciServer, pOciError, (unsigned char *)pConnectChar, strlen(pConnectChar),
OCI_DEFAULT);
answer = OCIAttrSet(g_pOciSession, OCI_HTYPE_SESSION, (unsigned char *)pUsernameChar, strlen(pUsernameChar),
OCI_ATTR_USERNAME, pOciError);
answer = OCIAttrSet(g_pOciSession, OCI_HTYPE_SESSION, (unsigned char *)pPasswordChar, strlen(pPasswordChar),
OCI_ATTR_PASSWORD, pOciError);
answer = OCIAttrSet(g_pOciServiceContext, OCI_HTYPE_SVCCTX, g_pOciServer, 0, OCI_ATTR_SERVER, pOciError);
answer = OCIAttrSet(g_pOciServiceContext, OCI_HTYPE_SVCCTX, g_pOciSession, 0, OCI_ATTR_SESSION, pOciError);
answer = OCISessionBegin(g_pOciServiceContext, pOciError, g_pOciSession, OCI_CRED_RDBMS, OCI_DEFAULT);
answer = OCIHandleAlloc(g_pOciEnvironment, (void **)(&pOciStatement), OCI_HTYPE_STMT, 0, NULL);
answer = OCIStmtPrepare(pOciStatement, pOciError, (unsigned char *)sqlCharArray, strlen(sqlCharArray),
OCI_NTV_SYNTAX, OCI_DEFAULT);
answer = OCIHandleAlloc(g_pOciEnvironment, (void **)(&cursor), OCI_HTYPE_STMT, 0, NULL);
answer = OCIBindByPos(pOciStatement,&pBind, pOciError, 1, &cursor, 0,SQLT_RSET,
pIndicator2, 0,NULL, 0,0,OCI_DEFAULT);
answer = OCIStmtExecute(g_pOciServiceContext, pOciStatement, pOciError, 1, 0, NULL, NULL,
OCI_COMMIT_ON_SUCCESS);
answer = OCIDefineByPos(cursor,&pOciDefine, pOciError,2,&id,sizeof(int),
SQLT_INT,pIndicator, 0, 0,OCI_DEFAULT);
answer = OCIDefineByPos(cursor,&pOciDefine2, pOciError,1,ename,40,
SQLT_STR,pIndicator3, 0, 0,OCI_DEFAULT);
if (answer == 0)
while ((answer = OCIStmtFetch(cursor,pOciError, 1,OCI_FETCH_NEXT,OCI_DEFAULT)) == 0)
printf("fetched id %d and name %s\n",id,ename);
answer = OCIHandleFree(pOciError, OCI_HTYPE_ERROR);
return 0;
Maybe you are looking for
-
Screen flicker and trackpad issues on macbook pro 8 2
Hi I have a macbook pro (8,2) 15 inch with a high rez anti glare display. The display stared to flicker after living my computer open in arch for about 30 min. I tried rebooting and it even started happening in the boot screen and in mac os x. The
-
Hello I'm interested in using paths to convey parameters instead of query strings. For example: http://domain.com/paramA1/paramB2/paramC3 instead of http://domain.com?paramA=1¶mB=2¶mC=3 The reason I'm interested is because crawlers like googl
-
Hi, I am using HTTP adapter to send messages to third party. What happens if the handshake between XI and 3rd party fails? Will the messages be lost or will they queued? or do they they need to be re-processed?..So is there an automatic method in c
-
So I just recently bought a 16GB iPod Touch and I have a few questions. First, I have more music than it can hold (well actually only 14GB, but I want to store some videos too), so I decided to create a Smart Playlist to automatically keep track of t
-
Hi there. i'm just wondering, is it possible convent .Class file back to .java file? or human readalbe chars?