Formatted search with UDF and syntax question
Can you explain the syntax with when to use the dollar sign and negative in writing a query for a formatted search based on user entry?
I now want to create a formatted search to pull values based on the user's entry into a UDF on the item master screen.
User entry into UDF U_Customer Code
to create Formatted search for UDF U_Rep01
I tried the following, but it does not work.
SELECT T0.U_REP01 FROM dbo.OCRD T0
WHERE T0.CARDCODE = $http://$OITM.U_CUSTOMERCODE
Thanks.
Please advise.
The right syntax would be like this:
SELECT T0.U_REP01 FROM dbo.OCRD T0
WHERE T0.CARDCODE = $[OITM.U_CUSTOMERCODE\]
However, the logic of query may not be correct. Select something must be already in the system and Where should also be locatable.
Thanks,
Gordon
Similar Messages
-
Formatted search with Query auto update
hi all,
I have created 2 UDF's at title level in marketing document, and assigned Formatted search with query to it with auto refresh when posting date field changes. One UDF gets updated automatically and the other one doesnt.
any one can guide me on this.
regards
salman
Edited by: Rui Pereira on Aug 8, 2008 11:47 AMHello Salman,
I took the effort to understand you question but I am not quite sure if I have all the pieces of the puzzle yet. I can see Jeyakanthan has already grilled you with questions and you have answered all of them.
UDF1 - is this se to Auto Refresh - Refresh regularly - on Posting Date?
UDF2 - On which field is this set to Auto refresh?
UDF3 - On which field is this set to Auto refresh?
One thing to note when you have two fields with FMS and the second one dependent on the value of the first, the second one does not auto refresh because it cannot detect the Field change on the First UDF.
This is probably what you are experiencing.
If you don't mind I would like to understand the business reason for the 3 UDF's and what each one is for. There might be other options to look at to achieve the same result.
Let me know
Suda -
Whatsnew page for 3.6.17 has formatting problems with Firefox and I.E.
I just updated from 3.6.16 to 3.6.17n and the whatsnew page, displayed after Firefox restarted, has formatting problems in the lower right hand corner.
I checked it with I.E. 8 and it also shows the formatting problem.
Why wasn't this caught before the page was put into "production"?
The URL is http://www.mozilla.com/en-US/firefox/3.6.17/whatsnew/
There is a line with the text "Release Notes » Firefox Features » Firefox Help »" that is being displayed on top of other material.
I wonder what a new Firefox user or an inexperienced user would think of this? They might think that they did something wrong or, worse, they might consider Firefox had problems and they won't use it.
This reflects badly on Firefox.
One more thing, could someone make this textarea taller and wider. It is so small as to cause problems typing and proofing the material.
The URL is https://support.mozilla.com/en-US/questions/new?product=desktop&category=d6&search=whatsnew+page+for+3.6.17+has+formatting+problems+with+Firefox+and+I.E.&showform=1
How about upping the cols and rows values? They are currently rows="10" cols="40"As you have a Power Mac you also have a alternative option to consider which is a third-party build from http://tenfourfox.blogspot.com/2011/08/601-now-available.html
-
Create a Formatted Search with SDK?
Hi,
Is it possible to create an Formatted Search with the SDK? With which API???
Thanks for Help
ThorstenHi Thorsten,
Nowadays, there is not any standar way to do this. An approach could be to search for the tables where Formatted Searches are stored which are some.
If you are interested, we have developed a tool that is used to carry personalizations such us Literals, Formatted Searchs, Querys, Document Editings, User Reports, UDF and UDT. It has been very helpfull for us, and we are planning to sell it to other partners. If you are interested send me an email to [email protected]
Regards,
Ibai Peñ -
I'am tring to do a Formatted Search with this: SELECT DISTINCT T0.Code, T0.Name
FROM T0 LEFT OUTER JOIN
ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name Like '$[ORDR.U_PDISCHAR] %%' ORDER BY T0.Name
but it not work any help... thanks
Message was edited by: Juan F VásquezHi,
This worked for me:
SELECT DISTINCT T0.Code, T0.Name
FROM T0 LEFT OUTER JOIN
ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name
Like $[ORDR.U_PDISCHAR] + '%%' ORDER BY T0.Name
Not whit this same fields, but with others.
Hope helps,
Ibai Peñ -
Formatted Search with multiple conditions
Hi experts,
I am using a formatted search to update the Unit price in Sales Order. Query mentioned below.
Select T0.ItemCode,
T0.ItemPrice,
From ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
Where T0.ItemCode = '[$38.1.0]'
and T1.u_location = '$[$38.2000002049.0]'
But while adding Item on Sales Order, it is showing error, Incorrect Syntax near '$[$38.2000002049.0]'.
Note: I have added an UDF named U_LOCATION( Alphanumeric, 10) in OPLN and selecting location in Price List through another FMS which is working perfectly.
Please help in this regards.
Thanks in Advance.
NabyenduHi Nabyendu Saha..
You said the u_location as alphanumeric the why you have given 0 for the field type in the FMS...
Select T0.ItemCode,
T0.ItemPrice,
From ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
Where T0.ItemCode = '[$38.1.0]'
and T1.u_location = '$[$38.2000002049]'
or
Select T0.ItemCode,
T0.ItemPrice,
From ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
Where T0.ItemCode = [$38.1.0]
and T1.u_location = $[ordr.u_location]
Try the above , hope helpful
Regards,
Kennedy -
How do i deduct dates using formatted search with a query
Hi Experts,
I would like to know how to get the date difference using query and formatted search. Below are the details:
1. I have created 3 Header UDF's composed of 2 Date type fields and 1 Quantity field.
2. The first one is for the Original Date, the next one is for the Payment Date and the Last one is for the No. of Days Lapsed.
What I would like to do is automatically compute for the number of days from the original date to the payment date. What query syntax should i use to achieve this?
Thanks,
YvetteHi Yvette,
It should be something like;
DATEDIFF (day, T0.[createDate], T0.[closeDate] ) as 'Aging' This is just an example. You may add your udf's instead of dates.
Thanks,
Joseph
Edited by: Joseph Antony on Jul 2, 2010 1:53 PM -
Uk date format issue with ASP and Access Database
I have an Asp form which updates records in an Access
database. Problem is
that the date format in the database record is dd/mm/yyyy
(UK), when
the record is displayed on the form it is mm/dd/yyyy(US)
which after I
update the record in the database the date has changed to the
new format.
I have tried everything I can to change the format but to no
avail...anyone any ideas how I can resolve this issue?
Thanks
Stevestevo.s wrote:
> Hi
>
> I have tried changing the format on the date field on
the server behaviours
> panelto ddmmyyy. Also have tried to set the form field
format to ddmmyy. I have
> also tried to use a function I got from a posting
somehwere on the net to no
> avail. <%function ddmmyyyy(varDate)
> ddmmyyyy = Day(DateValue(varDate)) & "/" &
Month(DateValue(varDate))
> & "/" & Year(DateValue(varDate))
> end function
>
> I believe that this is a recognised issue with
Dreamweaver and Access but
> can't seem to grasp the work around! Problem being I am
teaching myself through
> books and internet articles and can be weeks at a time
without being able to
> look at the issue..each time I come back to it it is
like starting all over
> again! I was hoping that somewhere out there there is a
simple solution the
> issue perhaps a date picker with the built in
functionality to address the
> issue...I am keen to understand how to deal with the
issue rather than just
> change my database date field to fudge the problem as I
am in the UK and when I
> eventually start to use the application I would like
there to be some
> consistency with dates and that users are familiar with
the format.
>
> Any help gratefully received!
Its not Dreamweaver, or Access, its your servers locale, its
set to US
format, not the UK.
On your page at the top use:
<% Session.LCID = 2057 %>
This will force the page into using UK formatted dates. Use
it on any
page that needs to format the page correctly.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
Format search with operation (+ - * /)
HI people, i have this format search working perfectly:
SELECT DISTINCT
CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > $[$38.14.number] AND $[$38.14.number]>0)
THEN '1'
ELSE '0'
END
FROM OCRD T1
INNER JOIN ITM1 T3
ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
WHERE T1.CARDCODE= $[$4.0.0]
But i need sum a % in $38.14, so i did the next:
SELECT DISTINCT
CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]*1.20) AND $[$38.14.number]>0)
THEN '1'
ELSE '0'
END
FROM OCRD T1
INNER JOIN ITM1 T3
ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
WHERE T1.CARDCODE= $[$4.0.0]
But this not work......how can i sum a % ???Ok, works with this:
SELECT DISTINCT
CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]/(0.80)) AND $[$38.14.number]>0)
THEN '1'
ELSE '0'
END
FROM OCRD T1
INNER JOIN ITM1 T3
ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
WHERE T1.CARDCODE= $[$4.0.0]
My problem was that no quit FS from field, i meaning i must quit and the put again the FS to take the changes. -
To create a formatted search with customer ref no.
Hi there, I am new to formatted searches and I am trying to do the following:
on the delivery docket when the customer ref no is filled in I want this to populate a UDF called ordr_U_CAllREF
I have the udf created and it is called Cust Ref.
can someone please give me some tips on how to create this please?
thank you.
EHi Edel,
Try this.
Select $[ORDR.NumAtCard.0]
Save above query in query manager and go to Sales Order Form and put cursor on U_CAllREF UDF and press Alt+Shift+F2 and it will ask you to link the query by using 3rd option and simply link this FMS to U_CAllREF.
Hope this will help you.
Regards,
Rahul -
Does Oracle Support Searches with Sentence and Paragraph Proximity?
I have successfully used SENTENCE and PARAGRAPH special groups and the WITHIN operator to search for terms contained within the same sentence and/or paragraph. However, I also need to search for terms that are located within a variable number of sentences or paragraphs of each other. For example, I could search for the term 'dog' and the 'cat' located within 3 sentences of each other. Is this possible in Oracle Text? I have searched the documentation and I can only find the 'near' operator for searching based on word proximity. I cannot find any mention of sentence or paragraph proximity. This is a very important requirement for the system.
Good question. We are trying to duplicate the functionality of an existing system. It was written into the requirements for the new system. I've asked how important this functionality is to the actual users, but we don't have the answer to that question yet. Knowing that Oracle Text does not support this out of the box, we will certainly need to evaluate the importance of this feature and determine whether it warrants some custom development or switching to another search technology.
I've thought about using regular expressions to implement this feature, but I'm guessing that the performance wouldn't be that great and it wouldn't integrate well with other Oracle Text searches. Has anyone else used regular expressions combined with Oracle Text to implement more sophisticated searching capabilities? -
Formatted Search with DI leads to a very slow performance - HELP....
Hello There
I have defined some formatted search in OPCH - everything is working fine.
I have added some logic to this form via the DI.(handlling 1 item press_event), and I get a very very slow performance - the ADDON-EXE jumps TO 230MEGA of memory, and entering values to each row in the tables/item in the form takes about 15 seconds.
Any suggestions?
RGDS
HAGAIHi Hagai,
Normally an addon written using the DI would take up 60-80MBs.
Are you filtering out all events except for the item press event for the form? If you are not filtering events then this can have quite a drastic affect on performance.
What logic have you got behind the press event? If the addon exe is ballooning out to 230MB then it suggests that there is either a problem with a memory leak or that an error is occuring in the code. I would recommend putting try/catch clauses at suitable places in the code and maybe specifically setting objects to null and calling the .NET garbage collector to try and minimise the potential for memory leaks.
Are you sure that it is the combination of the formatted search and the addon that is causing the problem, i.e. if you take away the formatted search but leave the addon do you still get poor performance or does everything speed up?
Hope this helps,
Owen -
Formatted search on UDF, DIAPI issue
Hi,
I have a formatted search on a UDF in the DETAIL of a SALES ORDER
When I try to set a value on this UDF, the DI API doesn't give any error but the UDF doesn't get the new value.
but all other UDF works except this one which have a formatted search on it in SAP
Is there something I don't know ?Hi,
My goal is not to make the formatted search working in DI API, as I said, I'm just trying to set a value in the UDF and because there's a FORMATTED SEARCH on this udf, it keeps the default value instead of the value I'm setting by the DI API
And yet, I have other UDF that have formatted search, and I'm able to set a value on the UDF anyway.
What I see different is that this UDF is numeric and the others aren't
I just don't understand why the DI API reports no error and yet the value I put in it isn't taken but only the formatted search default value for a numeric UDF Is this a known bug in SAP ? -
Flex AdvancedDataGrid - ColumnOrder With Formatter and ItemRenderer Question For Experts
I have a advanceddatagrid that has around 15 columns. Some are string,
some are numbers. I have shown 4 columns below.
The number columns have formatting done for zero precision and 2
digits precision. The itemRenderer is just to show Blue Color if the
number is +ve and Red Color if the number is -ve.
It looks something like below
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Name" textAlign"left"/>
<mx:AdvancedDataGridColumn dataField="Time" textAlign="right"/>
<mx:AdvancedDataGridColumn dataField="Score" textAlign="right" formatter="{zeroPrecisionFormatter}" sortable="true" itemRenderer="ColorRenderer" />
<mx:AdvancedDataGridColumn dataField="Average" textAlign="right" headerWordWrap="true" formatter="{twoPrecisionFormatter}" itemRenderer="ColorRenderer" />
I am trying to save the users setting of column order when he closes
the application and reload with the same order when the user opens the
applications. I am using SharedObjects and below is the code.
for(var i:int=0; i< adgrid.columns.length;i++){
var columnObject:Object = new Object();
columnObject.columnDataField = adgrid.columns[i].dataField as String;
columnObject.columnHeader =adgrid.columns[i].headerText as String;
columnObject.width = adgrid.columns[i].width;
columnArray.push(columnObject);
and then I save the columnArray to SharedObject.
I retrive them using the below code
for(var i:int=0;i<columnArray.length;i++){
adgrid.columns[i].dataField =columnArray[i].columnDataField;
adgrid.columns[i].headerText =columnArray[i].columnHeader;
adgrid.columns[i].width = columnArray[i].width;
How can I save and reload the Formatter and ItemRenderer data .
I am having trouble saving the formatter and itemrenderer and
reloading it again.
I would really appreciate if you can shown the code.
How can I reshuffle the columns but can preserve all the properties of it to though sharedobject and recover it againI would bypass the DataGrid all together. Using the DataGrid , you have to mess with itemrenderers and indexes ... not
very fun when one can avoid it. Instead , I would do my calculations off of the dataprovider. Then it becomes an elementary exercise of a for-loop and [Bindable] values. -
Is it possible to fetch matrix column through formatted search in UDF?
HI,
Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
SELECT $[$38.11.number]
does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
thanks and regards,
BinitaDavid,
I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
this query gives correct result when assigning to matrix column.
when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
Please guide further,
thanks in advance,
Binita
Edited by: Binita Joshi on Jun 5, 2008 2:45 PM
even
SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
is not working. no clues.
Maybe you are looking for
-
I am having a issue installing Adobe Acrobat XI. I am running Windows 8.1. When go to install it gets an error. The error is with transform in registry and will not install product. I am looking at how I can fix this registry problem. I have tried
-
I have an urgent request from my company's client to implement a feature of printing in our application. Actually the application is basically an XML Builder which generates XML code at the backend, something like Dreamweaver. I have no clue about pr
-
External Hard Drive not showing in finder
Hi, I have done an unsafe eject two weeks ago of my external hd. When I try to connect the hd again it doesn't show in finder. I've tried the disk utility but that doesn't work. Are there any other ways to get the hd working again?
-
Are Multiple Classes with Same name in a single Class valid ?
package inheritance; interface Foo int bar(); public class Inh6 { class A implements Foo // THis is the first class public int bar() return 1; public int fubar(Foo foo) return foo.bar(); pu
-
Hey I totally need help. My daughter named her nano "Phoebe" and when I tired to charge it i tunes came up with a lock symbol on the bottom where it says how much time is left. I cant play any music under "phoebe" playlist but can play any other play