Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This promise is immense; every day and every night, we are trying our best to fulfill it by helping others, leaving something worthwhile behind us, and living for a purpose that is "Enrich & Spread knowledge everywhere".
Query to Get The Oracle Application URL From Database in Oracle APPS R12
To find the application URL from the backend use one of the following queries : SELECT HOME_URL FROM ICX_PARAMETERS; Result http://<host.domain:port>/OA_HTML/AppsLogin OR SELECT FPOV.PROFILE_OPTION_VALUE FROM FND_PROFILE_OPTIONS FPO, FND_PROFILE_OPTION_VALUES FPOV WHERE FPO.PROFILE_OPTION_ID =Read more
To find the application URL from the backend use one of the following queries :
OR
See lessOBIEE 12c: External Embedded Content is Not Displayed (This content is blocked.)
Hello @Waqas , As explained here that for security reasons, you can no longer embed content from external domains in dashboards. To embed external content in dashboards, you must edit the instanceconfig.xml file. Note: You can accept embedding content from all external domains or from specific domaiRead more
Hello Waqas , As explained here that for security reasons, you can no longer embed content from external domains in dashboards. To embed external content in dashboards, you must edit the instanceconfig.xml file.
In case you need to embed an external content from all domains into your dashboard, so the DBA has to make the following changes in the presentation server :
Please do this on test environment first to make sure that everything is correct.
See lessIntegrate this dialog fonts to work in Oracle forms 12c
Hi, you can look into "WebUtil", because most of old features that available in "D2KUTIL" were converted to the web based utility by oracle. For more information about available functions in "WebUtil" and how to use them go to Oracle form builder online help from here Also another option if any funcRead more
Hi, you can look into “WebUtil”, because most of old features that available in “D2KUTIL” were converted to the web based utility by oracle. For more information about available functions in “WebUtil” and how to use them go to Oracle form builder online help from here
Also another option if any function not available in “WebUtil”, you would need to create your own Java Bean and use it inside your form.
See lessRemove the extension from a file name in C#
You can use Path.GetFileNameWithoutExtension: DirectoryInfo dirInfo = new DirectoryInfo(currentDirName); FileInfo[] smFiles = dirInfo.GetFiles("*.txt"); foreach (FileInfo file in smFiles) { builder.Append(Path.GetFileNameWithoutExtension(file.Name)); builder.Append(", "); }
You can use Path.GetFileNameWithoutExtension:
DirectoryInfo dirInfo = new DirectoryInfo(currentDirName);
FileInfo[] smFiles = dirInfo.GetFiles(“*.txt”);
foreach (FileInfo file in smFiles)
See less{
builder.Append(Path.GetFileNameWithoutExtension(file.Name));
builder.Append(“, “);
}
How to get last 4 characters from string in C#?
use the substring() method to get the last 4 characters str.Substring(str.Length - 4);
use the substring() method to get the last 4 characters
str.Substring(str.Length – 4);
See lessHow can update the values of a collection using LINQ in ASP.NET?
We can make use of ForEach extension method which is available as part of LINQ. collection.ToList().ForEach(o => o.PropertyToSet = value); The ToList is needed in order to evaluate the select immediately due to lazy evaluation
We can make use of ForEach extension method which is available as part of LINQ.
collection.ToList().ForEach(o => o.PropertyToSet = value);
The ToList is needed in order to evaluate the select immediately due to lazy evaluation
See lessNo migrations configuration type was found in the assembly
After you run Enable-Migrations and the Configuration file is created, rebuild the project and run Enable-Migrations -Force again.
After you run Enable-Migrations and the Configuration file is created, rebuild the project and run
See lessEnable-Migrations -Force again.
How to convert bytes to KB,MB, GB in .NET ?
using Log to solve the problem static String BytesToString(long byteCount) { string[] suf = { "B", "KB", "MB", "GB", "TB", "PB", "EB" }; //Longs run out around EB if (byteCount == 0) return "0" + suf[0]; long bytes = Math.Abs(byteCount); int place = Convert.ToInt32(Math.Floor(Math.Log(bytes, 1024)))Read more
using Log to solve the problem
static String BytesToString(long byteCount)
{
string[] suf = { “B”, “KB”, “MB”, “GB”, “TB”, “PB”, “EB” }; //Longs run out around EB
if (byteCount == 0)
return “0” + suf[0];
long bytes = Math.Abs(byteCount);
int place = Convert.ToInt32(Math.Floor(Math.Log(bytes, 1024)));
double num = Math.Round(bytes / Math.Pow(1024, place), 1);
return (Math.Sign(byteCount) * num).ToString() + suf[place];
}
Another solution
This may not the most efficient way to do it, but it’s easier to read if you are not familiar with log maths, and should be fast enough for most scenarios.
string[] sizes = { “B”, “KB”, “MB”, “GB”, “TB” };
double len = new FileInfo(filename).Length;
int order = 0;
while (len >= 1024 && order < sizes.Length – 1) {
order++;
len = len/1024;
}
// Adjust the format string to your preferences. For example “{0:0.#}{1}” would
// show a single decimal place, and no space.
string result = String.Format(“{0:0.##} {1}”, len, sizes[order]);
See lessHow to make Swagger Codegen work with .NET core
to integrate swagger codegen into your web api project you have to install "Swashbuckle.AspNetCore.Swagger" nuget package by following the steps below : right click your project and click manage nuget packages and install "Swashbuckle.AspNetCore.Swagger" nuget package OR right click in dependenciesRead more
to integrate swagger codegen into your web api project you have to install “Swashbuckle.AspNetCore.Swagger” nuget package by following the steps below :
right click your project and click manage nuget packages and install “Swashbuckle.AspNetCore.Swagger” nuget package
OR
right click in dependencies and click manage nuget packages and install “Swashbuckle.AspNetCore.Swagger” nuget package
Then add the following code into your project startup class
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc(“v1”, new OpenApiInfo { Title = “API”, Version = “v1” });
});
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint(“/swagger/v1/swagger.json”, “API v1”));
}
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
How get wwwroot folder path from ASP.NET core
Any Help?
Any Help?
See less