Formatted search - how to get table or form name
Hello,
I'm trying to create a generic query for modifying "Journal Remark" on different documents (Goods receipt, invoices ...) thru a formatted search
My problem is that I want to customize the "remark" according to the current document.
is there a way to get the table name or the form number in a query ? or should I to create a different query for each document ?
Regards
Hi....
If you activate the System Information from Menu Bar> View> System Information. Then when you move the cusrsor from any of the document you get some variable values which displays the ID of forms colums and rows.
You can get this information for your FMS. There is no need to create no. of FMS for each Document. Just take the variables into the FMS and apply to the same ID documents.....
Regards,
Rahul
Similar Messages
-
Formatted Search: How 2 get the active value
Hi ,
I defined a simple FS to learn, but keep getting the same values for different codes.
Shortly, I have 2 tables, first one (
REASON) keeps ReasonID,Reason Description, etc.
In the second one (MAIN) I enter other unrelated data and ReasonID.
I wanna get Reason Description from REASON table into that MAIN table by the help of FS. So I defined something like that:
SELECT T0.U_ReaDesc from .[@REASON] T0 , .[@MAIN] T1 WHERE T0.U_ReasonID = T1.U_ReasonID</b>
When I use this query, I keep getting the same reason description for different reason codes, actually the description of the first data in the REASON table.
Ouery settings : Search By Saved Query - Auto Refresh - When exiting altered column - Column "REASONID "- Refresh regularly
I guess, I have to add or change something in the query, so that I can refer to the <u>activ ReasonID value</u> in the MAIN table and get the descr. for it.
(Sorry if this subject is handled before but I couldn't find anything related in SDN.)
GüHi Gul,
Why don´t you download the help files from the SBO marketplace?
You can find a document about the FS under Service & Support SAP Business One Knowledge & Services Knowledge Base Customizing Formatted Searches.
There it explains lot of things about them.
The FieldId is the variable number seen when you are in debug mode. ColID is used only for matrix columns. And you could use 0 for the format is no formating is needed.
Regards,
Ibai Peñ -
Good day,
I searched through the forum and cant find anything.
I have around 300 published reports on SSRS and we are busy migrating to a new system.
They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
Your assistance is greatly appreciated.
I thank you.
Andre.There's no straightforward method for that I guess. There are couple of things you can use to get these details
1. query the ReportServer.dbo.Catalog table
for getting details
you may use script below for that
http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
I canu00B4t do a formatted search in a user table
Hye, I'm trying to do a formatted search over a user table using and I get the error -2006, why?
I use "report generator" and my selecc is :
SELECT T0.U_grupo, T0.U_CODE
FROM T0
WHERE T0.U_grupo ='[%0]' FOR BROWSE
If I do the same with standar table ( e.j OITM), all is right:
SELECT T0.ItemCode, T0.ItemName
FROM OITM T0
WHERE T0.PrchseItem ='[%0]' FOR BROWSE
unless, with user tables no, whyyyy?
thank´I have seen this, though I don't have an official answer, I have my own theories. SBO matches up the variable with the previous field name and looks up the description for that field. The description for user fields is not stored in the same place as standard fields.
In a previous thread, named "SQL Syntax in SBO" (number 7144) another user showed a way to do dummy selects with the variables to get the names of standard fields. Then the variables can be used for the real work.
That is awkward, and it limits you to the descriptions of standard fields.
Bruce -
How to get table headers in jsp page
hi,
this is praveen, can any one help me to solve this problem.
how to get table headers in a jsp page. whether it is possible using javascript or is there any other way.
pls send rep.
thank u.Hai ,
I Think This will help ful for u check it ,
File=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10, new TraceFormatter());
The above code specifies the path for your log file.
Then add this file as a log location and then log the traces. For this you can use the following code like:
Location location=Location.getLocation(className);
location.addLog(file);
location.setEffectiveSeverity(Severity.ALL);
location.entering(methodName);
To Create j2ee apllication
In path new-j2ee-jsp to create JSP's can only be used for J2EE applications.
So as you are using this in Portal Application, this does not work.
You can test this bahavior by creating a new Web Application (New-Project-J2EE-Web Module Project)
In this Web Module Project, try creating JSP, this will work.
So dont use new-j2ee-jsp to create JSP in Portal Application instead use New-File and name the file as jsp.
Regards ,
venkat -
How can get the console window name of the current form?
How can get the console window name of the current form?
Try the various get methods of the viewObject such as getQuery:
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/ -
How to get the report server name in Forms 10g.
How to get the report server name in Forms 10g.
I'm using the Application Server 10g 10.1.2.Hello,
I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
Francois -
Formatted Search on User Defined Table
Dear Experts,
I have the following formatted search query on a user defined table : select $[dbo.[@SALES_BUDGET].U_AcctCode]
It throws an error when I attempt to execute it. What's the proper way to write formatted searches on User Defined Tables. Please advice.
Kind RegardsThis works very well on the delivery docs :
select $[ODLN.DocNum]
on the header fields of a delivery document, Why not this
select $[SALES_BUDGET.U_AcctCode]
on a field in the User defined Table ? Is it the syntax ?
Edited by: MARTIN KAMAU on Sep 27, 2010 2:28 PM -
How to get an empty form when we run the page?
Hi all!
Hope you are well
My question is, how to get an empty form at run time? means when we run the page, text fields are filled with blank....Could anyone please help me with this..
Thanks in advance,
nanda.Hi Nanda,
Just follow these steps:
1) Create a bounded taskflow (uncheck the create with fragments checkbox)
2) Drag the CreateInsert operation on your bounded taskflow and mark it as the default activity
3) Drag a view and link the CreateInsert to the view component using a control flow case
4) Double click on the view to create the page
5) Drag the view object on the page as an ADF form
6) Go back to your bounded taskflow and from the General tab make sure under visibitliy you select "url-invoke-allowed"
Run you tasfklow and your form will be rendered in insert mode.
Regards
Antonis -
How to get the actual font name from a font file?
Hi
I have only the font Path I have to get the font name from that path. Any idea how to get the actual font name?
Thanks,I would ask you these questions:
Why do you need to do this? What are you ultimately trying to accomplish?
Are you really asking about the InDesign SDK?
Do you really need to get the "name" of a font from an arbitrary file? Or do you want information about a font installed on the system? If so, what OS?
Do you need to be able to handle any font format?
Which font "name" do you mean?
What language do you want the name in?
(1) It's not clear what you're trying to accomplish. A bit more information about your ultimate goal would be helpful.
(2) This question is not at all specific to the InDesign SDK. Are you really trying to do something in the context of an InDesign plug-in? If so, you probably want to look at IID_IFONTFAMILY and the IFontFamily::GetFamilyName function.
(3) If you are asking more generally, Windows and Mac both have system API calls to get this information, although those tend to deal with installed system fonts, not with arbitrary font files per se.
Also, you can parse the name table from a True Type or Open Type font without using any system APIs; as True Type and Open Type are well-documented standards. I would start by reading these:
The Naming Table
Font Names Table
(4) Although there are other standards, such as Type 1 (PostScript) fonts, and True Type Collection files and other formats, especially on Mac.
(5) Also, when you start down this road, you will quickly realize that your seemingly simple question is actually ambiguous, and that the answer is kind of complicated, because a font can have many names (a family name, a full font name, a style name, a PostScript name, etc.).
(6) And not only does a font have multiple names, it can have each of those names in multiple languages and encodings.
Any clarification would make this a better question. -
How to get a parameter without name in JSP?
hi everyone, My question is how to get a parameter without name in JSP? I have two pages, 1.html and 2.jsp.
in 1.html, I embeds some Javascript codes in HTML contents like below ( changed < to ( , > to )):
function toSubWin( obj )
window.open('test.jsp?'+obj.firstChild.toString(),'sw');
(a onClick='toSubWin(this)'style="background:green")focus(/a)
How can I get the parameter in 2.jsp?
THANK YOU IN ADVANCE!!Does obj.firstChild.toString() evaluate to a "name=value" type of String ?
Or better what does obj.firstChild.toString(),'sw' evaluate to ? It has to end up in a name=value format, else its just gibberish appended to the url.
In the jsp, you have to obviously know the name to get the parameter. There's a getParameterNames() method which returns you a Collection of parameter names as Strings, you could probably use that to retrieve the param values.
Then there's a getParameterMap() method which returns an immutable Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
However to what ends you employ them in a program which doesnt know its inputs is a different story.
cheers,
ram. -
How to get List Item attachments name without write any custom code or any database query?
Hi,
How to get List Items attachments name without write any custom code or any database query?You can get it from Rest,
There are 2 options,
1) create a 'Result Source' which has a search query for that List which has attachments
- Use rest query to get the 'Filename' , it will have the attachment file name
For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be
http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
You can refine the query, be giving proper 'querytext'
2) Use the List rest api
For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
You can get he attachments for 1st item using this
http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD. -
In ME2N report for PO- How to get or add Vendor name in ALV grid output
Hl Everyone
How to get or add Vendor Name and payment terms in the ALV grid output for the follwing reports like ME2N and ME2V.
cuurently i am in 4.7 E version.
Kindly suggest..........
thanks in advance
Regards
PrashanthHi Pankaj
I knew that vendor name field is avaiable in ECC versions, but how to get the same field(vendor name) in 4.7 E vesion.
Kindly suggest
Regards
Prashanth -
How to get the current schema name
Hi,
Can anybody please tell me how to get the current schema name, there is some inbuilt function for this,but i am not getting that. Please help me.
Thanks
Jogeshok folks, I found the answer at Tom's as usual.
http://asktom.oracle.com/tkyte/who_called_me/index.html
I rewrote it into a function for kicks. just pass the results of DBMS_UTILITY.FORMAT_CALL_STACK to this function and you will get back the owner of the code making the call as well some extra goodies like the name of the code and the type of code depending on the parameter. This ignores the AUTHID CURRENT_USER issues which muddles the schemaid. Quick question, does the average user always have access to DBMS_UTILITY.FORMAT_CALL_STACK or does this get locked down on some systems?
cheers,
paul
create or replace
FUNCTION SELF_EXAM (
p_call_stack VARCHAR2,
p_type VARCHAR2 DEFAULT 'SCHEMA'
) RETURN VARCHAR2
AS
str_stack VARCHAR2(4000);
int_n PLS_INTEGER;
str_line VARCHAR2(255);
found_stack BOOLEAN DEFAULT FALSE;
int_cnt PLS_INTEGER := 0;
str_caller VARCHAR2(30);
str_name VARCHAR2(30);
str_owner VARCHAR2(30);
str_type VARCHAR2(30);
BEGIN
str_stack := p_call_stack;
-- Loop through each line of the call stack
LOOP
int_n := INSTR( str_stack, chr(10) );
EXIT WHEN int_cnt = 3 OR int_n IS NULL OR int_n = 0;
-- get the line
str_line := SUBSTR( str_stack, 1, int_n - 1 );
-- remove the line from the stack str
str_stack := substr( str_stack, int_n + 1 );
IF NOT found_stack
THEN
IF str_line like '%handle%number%name%'
THEN
found_stack := TRUE;
END IF;
ELSE
int_cnt := int_cnt + 1;
-- cnt = 1 is ME
-- cnt = 2 is MY Caller
-- cnt = 3 is Their Caller
IF int_cnt = 1
THEN
str_line := SUBSTR( str_line, 22 );
dbms_output.put_line('->' || str_line);
IF str_line LIKE 'pr%'
THEN
int_n := LENGTH('procedure ');
ELSIF str_line LIKE 'fun%'
THEN
int_n := LENGTH('function ');
ELSIF str_line LIKE 'package body%'
THEN
int_n := LENGTH('package body ');
ELSIF str_line LIKE 'pack%'
THEN
int_n := LENGTH('package ');
ELSIF str_line LIKE 'anonymous%'
THEN
int_n := LENGTH('anonymous block ');
ELSE
int_n := null;
END IF;
IF int_n IS NOT NULL
THEN
str_type := LTRIM(RTRIM(UPPER(SUBSTR( str_line, 1, int_n - 1 ))));
ELSE
str_type := 'TRIGGER';
END IF;
str_line := SUBSTR( str_line, NVL(int_n,1) );
int_n := INSTR( str_line, '.' );
str_owner := LTRIM(RTRIM(SUBSTR( str_line, 1, int_n - 1 )));
str_name := LTRIM(RTRIM(SUBSTR( str_line, int_n + 1 )));
END IF;
END IF;
END LOOP;
IF UPPER(p_type) = 'NAME'
THEN
RETURN str_name;
ELSIF UPPER(p_type) = 'SCHEMA.NAME'
OR UPPER(p_type) = 'OWNER.NAME'
THEN
RETURN str_owner || '.' || str_name;
ELSIF UPPER(p_type) = 'TYPE'
THEN
RETURN str_type;
ELSE
RETURN str_owner;
END IF;
END SELF_EXAM;
Maybe you are looking for
-
Acrobat adding %20 to pdf links in iOS
Hi I have created a pdf with hyperlink URLs which works fine. However when it is opened in iOS devices Acrobat adds a %20 to the end of the URL which returns a page not found error. If I upload the source Word documents the links are fine. iOS will o
-
IPhoto RAW Images Compress after Editing!!
Has anyone noticed that after editing a RAW picture in iPhoto that it compresses to less than half it's size? If I have a file that that is 11.2mb, after the edit it drops to 1.9mb. Is this a setting I am missing? Message was edited by: Richard Hagan
-
Importing/exporting playlists in Tunes - will take decades
Is there a program that can do this effeciently or another method than ordinary manual selection? It's really frustrating having to select one and one playlist to import at a time when you have hundreds... Is there a way to import/export playlist fol
-
10.6.8 weather widget not working
The weather widget on my dash no longer recognizes Surrey, BC Canada and instead defaults to Vancouver even when I enter my postal/zip code, BC. Surrey use to work before the update.. I've tried other smaller cities around my area and they too all se
-
At our school a Special Ed Student tried different passcodes on a teacher's Ipad until it was disabled. The Apple ID on the Ipad is an email address of a staff member who isn't employed at the school anymore but it is a school email account which wa