PC-UI check code behind Tabs
Hi all,
Does anybody know how to see which ABAP code is triggered when pressing a Tab in a PC-UI application?
In CRM5.0 I'm using the Individual Objects (CRMM_PRD_IOBJECT) PC-UI application, and I want to check what is done behind when we go to the Configuration Tab of an Individual Object.
I'd like to generate the same URL to see and change the IPC configuration outside PC-UI (example ICWC) and I want to know how is it done in this PC-UI application.
Rgds,
Dora
Hi Dora,
Use the transaction CRMC_PCUI tools to find the modelaccess class of the tab page. Then goto the model access, set external breakpoints in query and read method.
Then when you call your application in BAB, it opens a session for debugging where you can understand whats happening.
Thanks & Regards,
Karthik.
Similar Messages
-
Check Code (PK) When type in to text field,Exist or not
Hi,
i want to create a Language Master.I have take two fields LAN_CODE and LAN_NAME in LANG_MASTER Table. Here LAN_CODE is my Primary Key.
Now problem is when i type New LAN_CODE into Text Field Item and when i press Submit then it show me Error LAN_CODE Already Exist .
I need when i Type New LAN_CODE in Language Code TEXT FIELD then it should be check LAN_CODE Already Exist or not. if LAN_CODE Already Exist .then Cursor should not point (go) to Next Item.
My LAN_CODE Formate is
HIE-------Hindi
ENG------English
PAN------PANJABI
How can i check code when i type new code in to text field.Code Exist or Not.
How can i do this.
Thanks
Vedant
Edited by: Vedant on Jun 2, 2011 11:39 PMHi Paul ,
Thanks to reply me.
I have created a form with report and
i did apply that code ,It's working BUt Now Problem is when i press TAB then it's show me error Value Already Exit But Here it's change into APPLY_CHANGE Mode .
How can i prevent to page not in Apply Change Mode.
i want when TAB Press and check for Duplicate VAlue it should be in Create New Language Mode.
How can i do this.
Thanks
Vedant
Edited by: Vedant on Jun 5, 2011 11:19 PM -
Hi All,
My requirements are that I have a page button which when selected calls another page and displays values for certain fields. I have to modify the query behind the Button to default values from another field. How do I check and modify the code behind the Button? Appreciate your help.
Thanks,
HariIf you say that the button press opens up another page, then there is nothing much to do in the button press event.
You would probably need to look at the processRequest of the new page that is opening up and change the query through the VO that is being executed .
Thanks
Tapash -
Error for visual ADF from xml code behind
Hello all:
I am a freshman to use Jdeveloper 10.1.3.1.
When I was using faces-config.xml to create JSP and JSPX page, the ADF component control suddenly diplayed abnormally, Only to show the tagbox like form, html, head, body and so on in Design view, sometimes even nothing to display,.But when I restart jdeveloper, some page would be OK again, others still can not be show normally. I checked the code behind the page.there is nothing wrong, because these codes are all auto-created.
Thanks to advance
Bonnie([email protected])I have solved this problem.
Because I added a filter into web.xml. It seemed that this would be complied while in design model. After I removed it, it's OK! -
Can I find the code behind a conversion Type in bW
Hi all,
I've created a converion type referencing 0mateiral and created a target variable to be used in a query. I was wondering where I can see the code behind the UOM converion that takes place.
thanksHi
Not sure I understand your question
But you can check RSUOM transaction code.
Regards
Anindya -
I need to use the PCC to update a secondary portlet at a specific time during the postback of a click event. Can I use the PCC to raise an event from the code behind file?
I'm afraid you cannot do this - the PCC exists solely on the client so must be called from the client, not the server. What you can do is include some javascript to handle this instead. One simple solution would be to add the script block
<script defer language="JavaScript">document.PCC.raiseEvent(...)</script>
This however will only work in IE. If you want cross browser support then you will have to register for your own portlets rerender event, then upon a rerender you must check some condition which you set in the codebehind (i.e. the text in a hidden element) and raise the PCC event accordingly. -
Detect current device channel from code behind
From
MSDN article about device channels:
Also, device channels can set a JavaScript variable called effectiveDeviceChannel that contains the current channel alias. This variable can be used to show which channel is currently being used.
Is there similar variable, that could be used in code behind (in C#), to determine which channel is currently used?You can use DeviceChannelPanel in your web part...
For e.g. the following in a visual web part will render only to a channel that is targetted for tablets.
<Publishing:DeviceChannelPanel runat="server" ID="pnlTab" IncludedChannels="Tab">
You can see this tab devices.
</Publishing:DeviceChannelPanel>
From code behind, you can create a device channel panel dynamically and add contents to it.
e.g.
LiteralControl l = new LiteralControl();
l.Text += "Sample content for tablets";
DeviceChannelPanel dp = new DeviceChannelPanel();
dp.Controls.Add(l);
dp.IncludedChannels = "Tab";
MyPanel.Controls.Add(dp); -
Code behind the button in ME23N
can any one give me the code behind the
"COLLAPSE HEADER" & "EXPAND HEADER" Button in ME23N?
Or just tell me the include of the main program.
Thanks,
KiranSo it means that when we click on "Save" - "Disk Icon" it calls
DO_KEY('commit_form') which inturn checks at each block level if the on-insert , on-update triggers have any logic or not. based on which it will perform that activity.
So can we conclude that for each commit_form it will check on-update n on-insert trigger at block level if it set to true. ?
pls clarify for any discrepancies. -
Assign Tabitem Style from xaml in Code behind
Hi
I have a style defined for TabItem in XAML.
I am generating the TabItem Dynamically and i want to add the Style create from XAML to the tabitem that is created dynamicaly.
Here is my XAML code
<TabControl Name="tc" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="White">
<TabControl.Resources>
<Style TargetType="TabItem" x:Key="hi">
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Grid>
<Border Name="Border" Background="LightBlue" BorderBrush="Black" BorderThickness="1,1,1,1" CornerRadius="2,12,12,2" > <ContentPresenter x:Name="ContentSite"
VerticalAlignment="Center"
HorizontalAlignment="Center"
ContentSource="Header"
Margin="12,2,12,2"/>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="Border" Property="Background" Value="LightSkyBlue" />
</Trigger>
<Trigger Property="IsSelected" Value="False">
<Setter TargetName="Border" Property="Background" Value="GhostWhite" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TabControl.Resources>
</TabControl
in code behind i am trying to assign the style
private void example_Click_1(object sender, RoutedEventArgs e)
try
ExampleGrid ex = new ExampleGrid();
Close_Tab theTabItem = new Close_Tab();
theTabItem.Title = "my Grid";
tc.Items.Add(theTabItem);
theTabItem.Style = (Style)FindResource("hi");
theTabItem.Content = ex;
theTabItem.Focus();
catch (Exception ee)
MessageBox.Show(ee.Message);
I am getting an exception saying resource hi is not found
Note: hi is the name of the style.
Please suggest me the solution for this.
Thanks AllI believe if you remove x:key attribute from the tab style
<Style TargetType="TabItem"> ... </Style>
then it will be applied to all tabs.
If this not works then take out your style definition from <TabControl.Resources> and put it the resource of parent control which contains TabControl
e.g
<UserControl ...>
<UserControl.Resources>
<Style TargetType="TabItem"> ... </Style> // don't add x:key attribute
</UserControl.Resources>
<TabControl> .. </TabControl>
</UserControl> -
How do I add an image next to a hyperlink in code behind?
I am trying to dynamically display hyperlinks in a div, and I am also trying to add an image to appear right next to each hyperlink. My code is able to add the hyperlinks to the div's but I can't figure out how to add an image to appear next to each hyperlink.
I am not pretty good at doing this in the code behind, which is what the requirements demand. Can anyone please point me in the right direction? I am basically trying to add an image right next to each hyperlink as they are dynamically created. Here is what
my code looks like...
using (SPSite site = new SPSite(siteUrl))
List<string> output = new List<string>();
SPWeb web = site.RootWeb;
SPList list = web.Lists["Applications"];
SPQuery testQuery = new SPQuery();
testQuery.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + MyEditorPartChoice + "</Value></Eq></Where>";
foreach (SPListItem item in list.GetItems(testQuery))
DynLink = new HyperLink();
dynDiv = new HtmlGenericControl("DIV");
lbl = new Label();
environment = Convert.ToString(item["Environment"]);
appUrl = Convert.ToString(item["App URL"]);
lbl.Text = "<br>";
dynDiv.ID = "dynDivCode";
dynDiv.Style.Add(HtmlTextWriterStyle.Height, "40px");
dynDiv.Style.Add(HtmlTextWriterStyle.Width, "100%");
dynDiv.InnerHtml = environment;
DynLink.NavigateUrl = appUrl;
DynLink.Text = dynDiv.InnerHtml;
DynLink.Visible = true;
Controls.Add(DynLink);
Controls.Add(lbl);
I really appreciate the helpI figured it out...just did this.
Image img = new Image();
img.ImageUrl = ;//ImgUrl;
img.Style.Add("Position", "absolute");
Hope that helps someone else who is wanting to do this for the first time. -
Error while posting " gl account is relevant to tax; check code"
Dear Experts
During invoice booking while posting into GL the warning message appears "" Gl account is relevant to tax; check code" and this is making our work a bit tough , please check why this message is coming.
as previously it was not there.
Regards,
Charmaine MartinDear:
I have a solution and i hope this will resolve your issue. Please follow as given under.
Use transaction OBA5 and enter FS as Area. You will find message no 219 there please keep the following settings against it
Keep User name as Blank
and for Online - Batch - (- means message will be turned off). If you do not find Message No 219 then please go to new entry and do the settings as mentioned above.\
Regards -
How to call a Web Api from from a Visual webpart code behind?
Hi,
I am trying to create a visual web part in sharepoint 2013 with data received from another Web API.
I followed the below steps.
1. Created a Visual Web part.
2. In the code behind(.cs) file I wrote the following code.
async private void GetResult()
using (var client = new HttpClient())
client.BaseAddress = new Uri("http://localhost:8080/");
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
var response = await client.GetAsync("api/Tfs/OpenEnquiriesCount");
var content = response.Content;
3. When I run the application, I get security exception in the line await
client.GetAsync()
What is the way to achieve this? How to call a web api from share point visual web part?
Thank you in advance.Hi,
Thanks for your sharing.
Cheers,
Jason
Jason Guo
TechNet Community Support -
Customize Access Requried page with code behind attached to it in sharepoint 2010
Hi,
I have modified default AccessDenied page to my custom accessdenied.aspx page and put Request Access button on it and javascript client side redirection to my requestaccess (reqestaccess.aspx, reqestaccess.aspx.cs) application page.
Here the problem is whenever i try to redirect to custom requesaccess page in _layouts it again shows me accessdenied page since user is not having access.
I changed requrestaccess to my custom requestaccess through Powershell command (UpdateMapping - 5). I can only modify the UI part of requestaccess.aspx and can not bind code behind where i want user to select combination of what access is required
on the site, there are lots of controls on requestaccess page e.g. dropdown that fetches data from list\external list and so on.
I tried many things to attach code behind to requestaccess page e.g. <%@ Page Inherits="codebehind.cs" /> and all.
Q - How can i redirect user to custom request access page (includes both aspx, aspx.cs) and allow user to interact with custom page? Is there any way OR WORKAROUND to do this in Sharepoint 2010?
OR
Can we overide with ElevetedPermissions in UI\CodeBehind and show the application page to user?
OR
Can user access application page even though they donot have rights to access site? Anything will do.
OR
In short, I need to redirect a user to some .aspx\.aspx.cs page from AccessDenied page, irrespective of user having access or not.
I hope question is clear enough to understand the issue. :)
Regards,
RahulHi,
According to your post, my understanding is that you had an issue about the custom Access Required page.
Microsoft supported using code behind, but for these pages it seemed some difference.
However, as a workaround, we can put all the functionality to the aspx page directly.
http://umbraes-tower.blogspot.com/2011/10/custom-request-access-page-in.html
More reference:
http://onlinecoder.blogspot.com/2011/05/how-to-customize-requestaccess.html
http://oszakiewski.net/eric/customizing-the-access-request-page-in-sharepoint-2010
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
IOS 6.1.3 / Windows 7 - 64 bit. I am connecting my IPhone 4 to my Windows desktop, in ITunes I click on IPhone and then the "Check for Update" tab. It takes me to a Windows explorer window. How do I get it to find updates?
Hello ibebry
Try using the Software Update on your iPhone by going to Settings > General > Software Update. One thing to keep in mind if you are trying it on the computer is to make sure that you are not pressing any keys down when checking for updates as that may bring up a pop up window to find the update file.
Update your iPhone, iPad, or iPod touch
http://support.apple.com/kb/ht4623
Regards,
-Norm G. -
How to find out the code behind a button
Hi,
What technique should I use to find out what java code is invoked when I click on a button in the portal?
More concrete: I want to know the code behind the button I'm talking about <a href="https://forums.sdn.sap.com/thread.jspa?threadID=188251">here</a>.
T h a n k s !
JeroenI would suggest you use HTTPWatch in your browser to see what is happening behind you button click.
You can get it here
<a href="http://www.simtec.ltd.uk/">http://www.simtec.ltd.uk/</a>
Maybe you are looking for
-
1) How is everyone testing the temperature their computers are running at? Is there a utility on the computer that does that? Sometimes my macbook runs very warm to the touch. When should get concerned? 2) I have my hard drive partitioned. HD #1 has
-
As the title says, pdf is fine on screen but when printing using auto portrait/landscape a black mark appears on the screen as in the photos below when the orientation is selected the line disapears and the print works correctly Anyone have any idea
-
Help me import images from Photoshop into a Premiere Elements project!
How do I add photos from Photoshop to existing Premire Elements project.
-
How to add fade element to rotating banner (javascript)
Hi! I'd like to add a fade element to a rotating banner. Does anyone have any ideas? My code is as follows: HTML: <div style="position:absolute; z-index:2;"> <a href="linkPage.html"><img src="images/factoryhack2v3.jpg" width="1136" height="285"
-
ICloud is activated, but changes on my Mac aren't pushing to my iPhone?
Help!