We've all heard of drop-down menus, which are all well and good. What about things you want to appear when needed on the page that aren't part of the site navigation? Use flyouts! This demo shows how. Download and see how the login/admin links on the top right of the page function....
Написал "синхронизатор" между базами Lotus и таблицами SQL. Данные из лотуса закидываются нормально, но затем не могу прочитать то что закинул. Из лотуса кидаю следующим образом:
CODE
Sub Click(Source As Button)
Dim v As Variant Dim sqlfields As Variant Dim sqlfields1 As Variant
Dim item As NotesItem sf="Select " For i=Lbound(doc.Forms) To Ubound(doc.Forms) sf=sf+{form="}+doc.Forms(i)+{" |} Next sf=Left(sf,Len(sf)-1)
Set col=db.Search(sf,Nothing,0) If col.Count=0 Then Msgbox "Ничего не найдено!" End End If count=col.Count Msgbox Cstr(count)+" документов"
sqlfields1=doc.sqlfields Dim sfields As Variant Dim fieldsTypes As Variant If doc.AllFields(0)<>"" Then sqlfields1=doc.SQLfieldsList_1 Redim sqlfields(Ubound(sqlfields1)) Redim fieldsTypes(Ubound(sqlfields1)) For i=Lbound(sqlfields1) To Ubound(sqlfields1) sqlfields(i)=Strleftback(sqlfields1(i),"^") fieldsTypes(i)=Strrightback(sqlfields1(i),"^") Next sfields=Join(sqlfields,",") con.ConnectTo(doc.Server1(0)) Set qry.Connection=con Set result.Query=qry ' result.Execute Dim g For i=1 To col.Count Set doc1=col.GetNthDocument(i) v="" For j=Lbound(sqlfields) To Ubound(sqlfields) If doc1.HasItem(sqlfields(j)) Then g="" Set item=doc1.GetFirstItem(sqlfields(j)) If Isarray(item.Values) Then g=Trim(Cstr(item.Values(0))) If g="" Then v=v+"NULL," Else Select Case fieldsTypes(j) Case 11: d=Cdat(g) v=v+"'"+Cstr(Year(d))+"-"+Cstr(Month(d))+"-"+Cstr(Day(d))+"'," Case -9, -10:v=v+"'"+g+"'," Case Else: v=v+""+g+"," End Select End If Else v=v+"NULL," End If Next qry.SQL={Insert INTO }+doc.Tables(0)+{(}+sfields+{) Values(}+Left(v,Len(v)-1)+{)} result.Execute If i=100 Then Goto next1 Next next1: Msgbox "Закончено" ' result.Execute result.Close(DB_CLOSE) con.Disconnect End Sub[/code]
Затем пытаюсь подсчитать кол-во закинутых мною записей. В свойствах таблицы написано реальное кол-во, но при программном чтении он возвращает 1. [code=no-highlight]Sub Click(Source As Button) Dim ws As New NotesUIWorkspace If doc.Tables(0)="" Then Msgbox "Укажите в какой таблице нужно произвести подсчет" ws.CurrentDocument.GotoField("Tables") End End If con.ConnectTo(doc.Server1(0)) Set result.Query=qry qry.SQL="SELECT * FROM "+doc.tables(0)
Msgbox (result.Execute) i=0 If result.Execute Then Do result.NextRow i=i+1 Loop Until result.IsEndOfData End If Msgbox Cstr(i) result.Close(DB_CLOSE) con.Disconnect End Sub
Помогите, пожалуйста, найти решение
через qry.SQL="SELECT COUNT(*) FROM "+doc.tables(0) подсчитывается.
Cобственно работаю с одной dll по ЕЦП но есть подозрение что она не хочет со мной работать, так как я ей подсовываю не верный тип (от неё всегда один и тот же результат - не верный тип вх. параметров) что требовалось: [code=no-highlight]Function nkiEnumDevices (no:integer; withcard:boolean; var name):byte[/code] как это реализовалось на LS: [code=no-highlight]Declare Function nkiEnumDevices Lib "nkidll" (no As Integer, withcard As Boolean, sName As Variant) As Byte
Dim i As Integer, j As Integer, s As String, w As Integer, v As Variant, mas(72) As String, no As Byte, withcard As Boolean Print "Existing readers:" i = 1 no = 1 Do v = mas withcard = False j = nkiEnumDevices(i, withcard, s) If j=0 Then Print s Else Exit Do End If i = i +1 Loop While j<>0[/code] если юзать аналогичные примера на С++ или Паскале то всё пашет может я как-то не правильно задеклалировал функцию?
This is one of my shorter Tips and I feel a little self-conscious about not posting something a little longer, but I'd feel worse if there are people out there that have been waiting for this and didn
Andrew Pollack's web application uses Forms and Subforms with embedded Views and has a picklist that's supposed to update when information is changed. However, it seems the Subforms needed some extra attention before they'd update.
As you might know, we've got another baby on the way chez Howlett. This will bring the head count to six. Hence we won't all fit in a standard 5-seater car and we're now looking for something bigger. A seven-seater.
We've all but made our minds up on a Nissan Qashqai+2 and this week we're probably going to order a new one. When I say new, I mean new. As in built to order. Although I swore I'd never do that again after I bought a brand new Golf GTI back in my reckless twenties, which ended up just being nothing more than a fancy lease car and a waste of money.
For various reasons we're going to be able to buy a brand new Nissan Qashqai for less than it would cost to buy any other 7 seater from the second hand market. Although I should point out that Karen refuses to buy a "people carrier", so we're restricted to the "crossover" variety of SUVs.
Anyway. What I can't decide is whether to buy a petrol or a diesel model? Everybody says buy diesel as they're cheaper to run but is it as clear-cut as that?
The diesel models are a grand or more expensive than the petrols. How much mileage do you have to be doing to start getting a return on this? On average we spend about 150 pounds a month on petrol.
Another issue is that the salesman (admittedly a slime-ball) advised us against a diesel, based on what we'd told him of our driving habits, as the diesel Qashqai has a "FAP" filter on the exhaust and unless you travel at 50mph for about 30 minutes at least once a week it will clog up and be expensive to clean out, thus negating the cost savings of a diesel.
Any thoughts? Just how much more economic is a diesel?
Now you can only specify 1fix text label for Notes view column titles.
It would be very usefull to be able to specify an @Formula to define Notes view column titles. Especially in multilingual environments, where you can use @formula to show the column title in the user's language.
Now you can only specify 1fix text label for Notes view column titles.
It would be very usefull to be able to specify an @Formula to define Notes view column titles. Especially in multilingual environments, where you can use @formula to show the column title in the user's language.
Members: Vince Schuurman (Chairman), Nathan Freeman (absent), Ludwig Nastansky (absent), Justin Hill, John Head, Brent Peters, Scott Johnsen Others Present: Peter Tanner, Niklas Heidloff, Steve Castledine, Angus McIntyre Proceedings:
Meeting called ...
Jane Marcus has contributed a DSAPI
filter to allow single sign on for web users including for servers that
don't run Windows - see
here. With this project you can achieve single
sign-on for Domino web users in an environment where some servers are ...
In the past I have frequently voted "No Opinion" (especially on ideas that I don't have direct knowledge of). I've now decided to go back and vote on alot of them. If an idea has already been marked complete, I would think you probably don't want any new votes on them.
I don't know about you but everything around
OpenNTF feels like a whirlwind right now, lots of new content (best new
quality in a short period for a long time for me), Notes Domino base templates
being made available on OpenNTF (a first), Notes Domino ...
Данная статья описывает процесс установки и изменения плагина размещения бренда (branding plug-in) Lotus Sametime на примере плагина для размещения бренда вымышленной компании Your Co.