Hard-coded application name in Customized App.
Dear all,
The name of standard application has been hard coded in one of the methods where URL for a page is generated. The customized application starts calling standard pages at this point.
I copied this method-code and called it from my object. But this is giving runtime context error.
I would have replaced the application name from this URL after method call, but its called at many points in application.
Kindly suggest what should i do now.
Thanks
The @computername@ variable takes a computer name defined by the user who deploys the template.
To make this template fit for scaling you have to define the computer name not as a variable but as a name followed by a number of ### symbols. The ### symbols will become numerical values. VMM makes sure that the numbers are incremented each time you scale
your computer tier.
Serv## will resolve in Serv01, Serv02, etc.
I’ve tried to combine the variable with the ### symbols in the past. I recall this didn’t work back then (2012SP1).
HTH
Similar Messages
-
Parse schema name - Avoiding hard-coded schema names
Hi all,
I have been trying to find a similar thread but had no luck. I want to avoid hard-coding schema names in my reports. I have tried to use a Substitution string but I don't seem to be able to reference it by just doing :default_schema. I already reference the parsing schema like this: #OWNER# which is saving me a lot of time. Is there any way to create additional variables like that one instead of those substitution strings that can't be parsed in a query?
Thanks a lot for your help.
Regards,
werot.Werot wrote:
I have been trying to find a similar thread but had no luck. I want to avoid hard-coding schema names in my reports. I have tried to use a Substitution string but I don't seem to be able to reference it by just doing :default_schema. I already reference the parsing schema like this: #OWNER# which is saving me a lot of time. Is there any way to create additional variables like that one instead of those substitution strings that can't be parsed in a query?
Will you actually get any benefit from using substitution strings? They are also hard-coded at design time. You could use application items if you need something dynamic.
Bind variable syntax (:default_schema) will not work for lexical substitution of substitution string and application item values in report queries. You have to use static text (&DEFAULT_SCHEMA.) references (and be aware of the potential for SQL injection that this exposes).
I wouldn't recommend using schema qualifiers directly in APEX applications. I would use grants, synonyms and views at the database level. -
Hi All,
I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
This is how the process tab looks like .
Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
Argument : -f MSSQLSpatial MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
Success value : 1
For above settings, package runs fine. The spatial table is created in SQL server db. However when hard-coded SQL server name and database name are replaced with global variables , the spatial table is not created in the database. Yet the package runs fine.
It does not throw any errors. (I am using another variable for full file path. It is not causing any errors though)
" -f MSSQLSpatial MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
Both variables are string type. Can anyone tell me what I am doing wrong here please?
I am running this in VS 2012.
Thanks for your help in advance..
shamenThere should be a single space just after True:
before
" -f MSSQLSpatial MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
after keeping the space
" -f MSSQLSpatial MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True; "+ @[User::Filepath] + "\\my_sample_file.shp"
Thanks
shamen -
Get ran application name - If multiple apps are created in Dynpro Component
Hello All,
I have one dynpro component, where multiple application has been created for multiple windows in the same component. Each component has different default view set.
Is there any way fetch or get the name of application name that is ran, in the component controller's WDINIT method?
Thanks,
BhushanI found & the answer is -
DATA: lo_component TYPE REF TO if_wd_component,
lo_application TYPE REF TO if_wd_application,
lo_application_info TYPE REF TO if_wd_rr_application,
lv_appl_name_str TYPE string.
Get component
lo_component = wd_this->wd_get_api( ).
Set application name
lo_application = lo_component->get_application( ).
lo_application_info = lo_application->get_application_info( ).
lv_appl_name_str = lo_application_info->get_name( ). -
Hard coded member names vs. member set function
Hello,I'm having a difficult time troubleshooting the following dynamic calc. This formula works perfectly - it gives me the total units sold in the prior 13 weeks:@SUMRANGE("POS Units", @CURRMBRRANGE(Time, LEV, 0, -13, -1))However I'd like to make the member more generic, so instead of "POS Units" I thought I could simply substitute @CURRMBR(Measures), as in:@SUMRANGE(@CURRMBR(Measures), @CURRMBRRANGE(Time, LEV, 0, -13, -1))But when I check the syntax in the outline formula editor, it tells me "Invalid Parameter Type".I have the same problem with the 0 as a parameter of @CURRMBRRANGE. I tried substituting the function @CURLEV(Time) and got the same error.-dan
Well, there are a couple of things. First, if the total member (to store the 13 time periods total) is in the Accounts dimension, then you cannot have it store sums for all possible measures.The SUMRANGE function wants a member to sum - aside from the syntax problem - when SUMRANGE is calculating the Total Units Sold, what do you think THe CURRMBR is from Measures? Its the Total Units Sold! You would be calculating the sum of Total Units Sold over time and putting the result into Total Units Sold. The reason for this is that two members from the same dimension do not intersect each other.Now, if you put a member in a different dimension, and you want to sum any possible measure, use the @SUM command rather than @SUMRANGE. It will implicitly choose the current member from the other dimensions as it calculates.Finally, despite what the documentation says, some functions don't work when used in combination. Also, some function give syntax validation errors, but do work when the calc is run. THere is a "Server Formula Validate" option in the outline editor that sometimes properly evaluates formulas.Hope that helps.Regards,Jade-------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]
-
Tips on avoiding hard coded paths and make a java app platform independent
HI all,
I would like to gather some tips on how to avoid hard coded file paths, which are plenty in the application I work on and which I inherited from previous programmers.
Also, when deploying to the production server, my app goes from a Windows platform to a Linux machine.
I am curious to know what tricks and tools other programmers find useful in similar contexts.
I am sure many of us would benefit from the discussion.
Thank you !Actually, Java does this for you; you can use unix-style paths and they will still work, even on Windoze. To wit:
public static void main(String[] args) {
File f = new File("/");
System.out.println(f.getAbsolutePath());
}Yields: C:\
public static void main(String[] args) {
File f = new File("/Program Files");
System.out.println(f.getAbsolutePath());
}Yields: C:\Program Files -
How to get the table name in the trigger definition without hard coding.
CREATE TRIGGER db.mytablename
AFTER UPDATE,INSERT
AS
INSERT INTO table1(col1)
SELECT InsRec.col1
FROM
INSERTED Ins
--Below i am calling one sp for which i have to pass the table name
EXEC myspname 'tablename'
In the above trigger,presently i am hard coding the tablename
but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table nameI really liked your audit table concept. You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields. Wanted to share my end result.
USE [YourDB]
GO
/****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
ON [dbo].[YourTable]
AFTER INSERT,DELETE,UPDATE
AS
BEGIN
SET NOCOUNT ON;
Declare @v_AuditID bigint
IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
CREATE TABLE [dbo].[AutoAudit]
( [AuditID] bigint identity,
[AuditDate] DateTime,
[AuditUserName] varchar(128),
[TableName] varchar(128) NULL,
[OldContent] XML NULL,
[NewContent] XML NULL
ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
PK_AutoAudit PRIMARY KEY CLUSTERED
[AuditID]
) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
( [TableName] ASC,
[AuditDate] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
END
Select * Into #AuditDeleted from deleted
Select * Into #AuditInserted from inserted
While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
Begin
INSERT INTO [dbo].[AutoAudit]
( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
SELECT
GETDATE(),
SUSER_NAME(),
[TableName]=object_name([parent_obj]),
[OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
[NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
FROM sysobjects
WHERE
[xtype] = 'tr'
and [name] = OBJECT_NAME(@@PROCID)
Set @v_AuditID = SCOPE_IDENTITY()
Delete from AutoAudit
Where AuditID = @v_AuditID
AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
Delete top(1) from #AuditDeleted
Delete top(1) from #AuditInserted
End
END -
Using AIA to jump start application integration platform for custom apps
Has anyone used AIA Foundation Packs as the core application integration framework for integrating custom developed applications?
My company has Oracle / PSft ERP applications, but I'm wondering if there is value in exploring the Oracle AIA Foundation Packs to help standardize / implement application and data integration solutions between our custom applications. Most of our application architecture portfolio are custom apps on legacy Oracle Forms platform and Oracle ADF; Oracle Java rich client (EJB / Swing) applications.
RHi R,
There are many AIA customers doing exactly the same. The value of standardizing the complete integration portfolio is very apparent and AIA Foundation pack provides you complete set of tools to achieve it.
Regards
Rohit -
Application name for SDA Deployment(Custom Adapter)
hi Experts,
I am trying to deploy an SDA file using SDM. I had created an EAR project using NWDS and then converted this into an SDA file using CECLT.
Now while deploying this file using SDM, it is asking for application name and vendor name. Vendor name i had given while creating SDA file.
What is the meaning of application name while deploying SDA file?
Please help if possible! Thanks!
MayankHi DDasgupta,
After you created a web application with a custom host name, if you got a prompt for the user and you may face the following issues:
There is continuous prompt for the credentials
HTTP 401.1 error
This shows that there is a problem with the Loopback configuration. This situation should occur only when we access the application from the server machine.
For fixing the problem, we have to disable the Loopback value inside the registry.Open the Registry Editor (regedit.exe) and locate the following key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa, and create a new Key Value of type DWORD inside
it and set the value to 1.
More information, please refer to the link:
http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-2010-creating-host-name-for-web-application/
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Microsoft Error Reporting log version: 2.0
Error Signature:
Exception: EXC_BAD_ACCESS
Date/Time: 2014-03-27 14:14:52 +0000
Application Name: Microsoft Excel
Application Bundle ID: com.microsoft.Excel
Application Signature: XCEL
Application Version: 14.1.4.111121
Crashed Module Name: libTIFF.dylib
Crashed Module Version: unknown
Crashed Module Offset: 0x000078ae
Blame Module Name: MicrosoftComponentPlugin
Blame Module Version: 14.1.4.111121
Blame Module Offset: 0x0000d9fc
Application LCID: 1040
Extra app info: Reg=en Loc=0x0410
Crashed thread: 0Hi mattiaprodomo,
If you are having issues with an app that unexpectedly closes on launch, you may find the following article helpful:
OS X Mavericks: If an app freezes or quits unexpectedly
http://support.apple.com/kb/PH13975
Regards,
- Brenden -
.app appearing in Application names
I'm getting .app appearing in Finder, Spotlight, etc. with application names, e.g. iPhoto.app. This only started recently. How can I revert to apps hiding the extension in the file name without making it universal?
Sorted. I didn't realise that by unchecking 'show all extensions', most document files still show their extension.
-
I can not buy in-app purchase in application name clash of clan My balance in Apple ID is sufficient to buy that item. Please kindly help me on this issue.Your help would be appreciated.
What happens when you tru buy items in it ?
If you are getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
If it's a different problem ... ? -
PKGBUILD for an application with a hard coded path
Hello,
I was about to make a nice AUR package for an application I use (the Elance work tracker) and I had a few details I needed to clear up. This package is pretty easy to install and all of the deps are available in the aur, but I would like a more convenient way.
Problems:
It seems to best/only work using the java6 packages in AUR. These install in opt
It has a hard coded dependency on java being at /usr/bin/java
I want to become a more active contributor to the AUR as I have a home build directory with a bunch of stuff I compile and use myself and would love to contribute these with PKGBUILDs. I just want to know how this situation is normally handled and make sure I use the proper etiquette.
Thanks very much for your attention.
Chrislrwxrwxrwx 1 root root 40 Sep 15 10:25 java -> /usr/lib/jvm/java-7-openjdk/jre/bin/java
/usr/bin/java is a symlink on my system, check if the java6 package changes that symlink .
If so, the hard coded dependency on /usr/bin/java is no problem. -
How to trigger an ESS application from a custom built WD app
Hi All,
I want to trigger the ESS record working time application from a custom built web dynpro application on click of a button.
I tried Absolute Page Navigation for this but I am not able to do so can somebody help me in this. I use this code to navigate it to the target application.
<b><i>WDPortalNavigation.navigateAbsolute("ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_working_time/com.sap.pct.erp.ess.recordworktime", WDPortalNavigationMode.SHOW_INPLACE, WDPortalNavigationHistoryMode.NO_HISTORY, "");</i></b>
Regards
SidHi Tummuru,
I was about to close this question as my problem got resolved.
I was running the application outside portal and because of that the navigation was not working.
Anyways thanks for showing interest
Message was edited by:
siddharth chauhan -
How to get application name or component name
I have a requirement to make a Z table similar to the context change log table . I need to add application name to that.Is there a way one can retrieve application name of the current application from a function module or any other way?The table WDY_APPLICATION does not seem to have all the custom applications built it only shows the SAP provided applicatoin details.
here is coding to get the wd app name:
DATA:
lr_ctrl_api TYPE REF TO if_wd_controller,
lr_comp_api TYPE REF TO if_wd_component,
lr_appl_api TYPE REF TO if_wd_application,
lr_appl_info TYPE REF TO if_wd_rr_application,
l_appl_name TYPE string.
* get app name
lr_ctrl_api = wd_this->wd_get_api( ).
lr_comp_api = lr_ctrl_api->get_component( ).
lr_appl_api = lr_comp_api->get_application( ).
lr_appl_info = lr_appl_api->get_application_info( ).
l_appl_name = lr_appl_info->get_name( ).
For further Information check also the Runtime Repository APIs: [http://help.sap.com/saphelp_nw04s/helpdata/en/46/a07a6e79822c10e10000000a114a6b/frameset.htm]
Maybe you are looking for
-
How do I get my printer to print in black only?
How do I get my printer to print in black only?
-
Photoshop CS6 Cloud crashes when I use the eyedropper tool
Since upgrading to CS6 Creative Cloud subscription a few weeks ago I have noticed Photoshop has crahsed a number of times when I am using the eyedropper tool - very frustrating, please help.
-
Making an order from Barnes and Noble. When page came up that said "review this order and make any changes needed" before clicking on "place this order", wanted to make changes, but clicked on "change button" and it would not respond. Opened an email
-
Will I need both audio and video converter cables? Thanks.
-
Secured Network - Can't get WGA54G to connect
My brother could connect fine before we secured our network. He is using a WGA54G wireless adapter. We are using a BEFW11S4 router. We were dumb and hadn't secured our network but finally did and got all other computers set up to connect but we are h